AI助手支持GPT4.0
第三方应用开发调用企业微信发送应用消息(任务卡片),如何支持id转义?
请求地址:
https://qyapi.weixin.qq.com/cgi-bin/message/send
入参:
{
"touser": "c7c837029108ce4d7309054af20270dc",
"agentid": 1000003,
"msgtype": "taskcard",
"taskcard": {
"title": "$userName=BaoXiaoHan$赵明登的礼物申请",
"description": "$userName=BaoXiaoHan$",
"task_id": "taskid123111249",
"btn": [{
"key": "1212",
"name": "批准",
"replace_name": "已批准",
"color": "red",
"is_bold": true
},
{
"key": "key222132212",
"name": "驳回",
"replace_name": "已驳回"
}
]
},
"enable_id_trans": 1
}
发送的效果
已开启了id转义 "enable_id_trans": 1 , userid : BaoXiaoHan 在企业中存在
Request address: https://qyapi.weixin.qq.com/cgi-bin/message/send Reference: {"touser": "c7c837029108ce4d7309054af20270dc", "AgentID": 1000003, "msgtype": "taskcard", "taskcard": {"title": "$username = baoxiaohan $Zhao Mingdeng's gift application", "description": "$username = baoxiaohan $", task_ ID ":" taskid123111249 "," BTN ": [{" key ":" 1212 "," name ":" approve "," replace "_ Name ":" approved "," color ":" red "," is "_ Bold ": true}, {" key ":" key222132212 "," name ":" reject "," replace "_ Name ': "rejected"}]}, "enable_ Id_ The effect of trans ": 1} sending has ID escape enabled_ Id_ Trans ": 1, userid: baoxiaohan exists in the enterprise
您好,这个确认是已知问题,稍后会上线优化