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

小游戏 企业微信 微信支付 小程序 文章 2020-07-30 21:07 3637 0 全屏看文

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

回答:

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

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

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

-EOF-

AI助手支持GPT4.0