我已经成功地创建了一个脚本,通过传入的钩子连接器发布到微软团队,但是当它发布消息时,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),
),
),
),
);