我传入参数都有
{"thing1":"你预约的就诊医生停诊,请你及时办理退号,逾期作废。","thing10":"2023年12月08日 17:00-17:30","thing12":"疼痛科普通号","thing17":"lihua","thing3":"TTK1-疼痛科1"}
返回信息如下,麻烦大佬们给看看啥情况
{"errcode":47003,"errmsg":"argument invalid! data.thing17.value is empty rid: 6577cdc8-2b4bc659-0aec7812"}
接口提交的数据
{
"touser": "oPFmV6_dv4nMLSlsf4svH33xxNms",
"template_id": "N5C4BG0RNRdoRIHJjC-D63qVpqKiy-r3bphCkAaQXWY",
"page": "index",
"data": {
"time1.DATA": {
"value": "9"
},
"phrase2.DATA": {
"value": "888"
},
"amount3.DATA": {
"value": "888"
},
"thing4.DATA": {
"value": "8888"
}
}
}
官方返回的
"request": {
"invoke_time": 1703855159,
"cost_in_ms": 88,
"request_url": "access_token=76_TLI4avvj0Xf7uYkookGwF2n1v-5FEZnFse6G4hZk2MQv-MMcJTmJC3xMhTtygcR5JsIvWEJIAQlXdy9ahW1LQGS_uZFD9gupCuxBiPLJdHZf_oCS1SJzJv9NOGwYDXgACABGA",
"request_body": "{\"touser\":\"oPFmV6_dv4nMLSlsf4svH33xxNms\",\"template_id\":\"N5C4BG0RNRdoRIHJjC-D63qVpqKiy-r3bphCkAaQXWY\",\"page\":\"index\",\"data\":{\"time1.DATA\":{\"value\":\"9\"},\"phrase2.DATA\":{\"value\":\"888\"},\"amount3.DATA\":{\"value\":\"888\"},\"thing4.DATA\":{\"value\":\"8888\"}}}",
"response_body": "{\"errcode\":47003,\"errmsg\":\"argument invalid! data.time1.value is empty rid: 658ec437-375fb59e-742ed73f\"}",
}
}
接口返回的
{"errcode":47003,"errmsg":"argument invalid! data.time1.value is empty rid: 658ec4b2-71d7658c-0500c1b1"}调试了好久,也没有发现问题
参考文档示例修改一下请求参数:https://developers.weixin.qq.com/miniprogram/dev/OpenApiDoc/mp-message-management/subscribe-message/sendMessage.html#%E8%AF%B7%E6%B1%82%E6%95%B0%E6%8D%AE%E7%A4%BA%E4%BE%8B
{"thing17":{"value":"张子清"},"thing3":{"value":"TTK1-疼痛科1"},"thing12":{"value":"疼痛科普通号"},"thing10":{"value":"2023年12月08日 17:00-17:30"},"thing1":{"value":"你预约的就诊医生停诊,请你及时办理退号,逾期作废。"}}
// 返回结果
{"errcode":47003,"errmsg":"argument invalid! data.thing17.value is empty rid: 6578048d-42746952-6a12e151"}