我已经成功创建了一个脚本,通过传入的挂钩连接器发布到微软团队,但是当它发布消息时,potentialActions总是隐藏在看到更多标签后面。有没有办法强迫它始终显示?
参考代码:
$data = array(
'@type' => "MessageCard",
'@context' => "http://schema.org/extensions",
'themeColor' => "1B2C58",
'summary' => "BOT has closed a sale!",
'sections' => array(
0 => array(
'activityTitle' => $username . " has closed a sale!",
'facts' => array(
0 => array(
'name' => "Customer",
'value' => $accname),
1 => array(
'name' => "Product",
'value' => $interestTitle . " - " . $opTypeArray[$opType] . $extra),
2 => array(
'name' => "Sales Value",
'value' => $value . " (excl. VAT)"),
3 => array(
'name' => "Purchase order",
'value' => $poInput),
),
'markdown' => True
),
),
'potentialAction' => array(
0 => array(
'@type' => "ActionCard",
'name' => "Add a comment",
'inputs' => array(
0 => array(
'@type' => "TextInput",
'id' => "comment",
'title' => "Enter your comment",
'isMultiline' => true),
),
),
1 => array(
'@type' => "OpenUri",
'name' => "View Opportunity on ADM",
'targets' => array(
0 => array(
'os' => "default",
'uri' => "https://...." . $ops),
),
),
2 => array(
'@type' => "OpenUri",
'name' => "View Quotation",
'targets' => array(
0 => array(
'os' => "default",
'uri' => "https://....". $newUrl),
),
),
),
);
答案 0 :(得分:0)
我们已添加该功能以不显示"查看更多"如果消息中有操作,则按钮。这将很快提供给所有用户。
感谢。