第三方应用开发调用企业微信发送应用消息(任务卡片),如何支持id转义?

请求地址:

入参:

{

"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

}

发送的效果

88b58cc170ee9c158a50f770846b610b.png

已开启了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

回答:

企业微信运营专员-千夜:

您好,这个确认是已知问题,稍后会上线优化

taotao:谢谢,今天测试没有问题了

Logo

魔乐社区(Modelers.cn) 是一个中立、公益的人工智能社区,提供人工智能工具、模型、数据的托管、展示与应用协同服务,为人工智能开发及爱好者搭建开放的学习交流平台。社区通过理事会方式运作,由全产业链共同建设、共同运营、共同享有,推动国产AI生态繁荣发展。

更多推荐