所以这是我发送到我的 Office365 组的对象:
officeObject = {"title":title,
"text":"Description: " + description,
"themeColor": "DB4C3F",
"sections":[
{
"facts": [
{
"name":"Assigned to:",
"value":"[" + assignedTo + "](" + userUrl + ")"
},
{
"name":"Urgency:",
"value":urgency
},
{
"name":"Created on:",
"value":created
}
]
}
],
"potentialAction": [
{
"@context": "http://schema.org",
"@type": "ViewAction",
"name": "View Incident",
"target": [
url
]
}
]
};
但这是通知的样子:
如您所见,标题上方的颜色条是灰色的,但在我的对象(第 3 行)中,我将“themeColor”设置为“DB4C3F”,它是带红色的 HEX。我几乎按照文档所说的方式复制并粘贴了它。有谁知道为什么颜色没有变化?