收藏
回答

发送订阅消息argument invalid! data.character_string5?

利用微信开放平台调试工具发送订阅消息失败:

请求参数

{

  "template_id": "M3fS3QoCs5nPHu4_bLZPgQPYYRYDRdkRFPgIREoJJR0",

  "page": "pages/OrdersPackage/GetOrder/index",

  "touser": "ot1gq5SROjJYe6KYxQ9j9i7FXzSs",

  "data": "{\"character_string5\":{\"value\":\"12313123123123213\"},\"thing9\":{\"value\":\"111\"},\"date6\":{\"value\":\"2023-07-07\"},\"phone_number10\":{\"value\":\"1339602632\"}}",

  "miniprogram_state": "developer",

  "lang": "zh_CN"

}

响应结果:

{

errcode: 47003,

errmsg: "argument invalid! data.character_string5.value i rid: 64ad0a49-42b88878-6cfe6a54",

}

character_string5换了很多值都不行

回答关注问题邀请回答
收藏

1 个回答

  • 社区技术运营专员--许涛
    社区技术运营专员--许涛
    2023-07-11

    你好,请求包:{"template_id":"M3fS3QoCs5nPHu4_bLZPgQPYYRYDRdkRFPgIREoJJR0","page":"pages/OrdersPackage/GetOrder/index","touser":"ot1gq5SROjJYe6KYxQ9j9i7FXzSs","data":"{"character_string5":{"value":"12313123123123213"},"thing9":{"value":"111"},"date6":{"value":"2023-07-07"},"phone_number10":{"value":"1339602632"}}","miniprogram_state":"developer","lang":"zh_CN"}

    排查data后面的引号,详细对照文档自查

    2023-07-11
    有用
    回复 3
    • Javen
      Javen
      2023-07-11
      就是参照这里写的啊
      2023-07-11
      回复
    • Javen
      Javen
      2023-07-11
      不加引号工具直接就报错了
      2023-07-11
      回复
    • Javen
      Javen
      2023-07-11
      2023-07-11
      回复
登录 后发表内容