{
"touser":"o1wd85WNZuMPdZqJuFtCDroaD2ls",
"mp_template_msg":
{
"appid":"wx4a1a4d043f7110f8",
"template_id":"v2dREoIos-NgTAz2CiefPacZdGEwZOZliW5M38EB7mo",
"url":"https://caigou.honwa-steel.com",
"miniprogram":{
"appid":"wx3d7540a2a2168340",
"pagepath":"pages/index/index?foo=bar"
},
"data":{"first": {"value":"恭喜您,成功晋级!快去看看吧~","color":"#173177"},"keyword1":{"value":"key1","color":"#173177"},"keyword2":{"value":"key2","color":"#173177"},"keyword3":{"value":"2019年05月31日 10点23分31秒","color":"#173177"},"remark":{"value":"如有疑问,请联系在线客服。","color":"#173177"}}} }
报错:{"errcode":40165,"errmsg":"invalid weapp pagepath hint: [n3d12a09083955]"}
"pagepath":"pages/index/index?foo=bar"
这个路径是线上审核通过的版本中的路径吗?
还没审核通过
那就对喽,消息中打开的小程序肯定是线上版本呀
路径有问题,检查下
但是路径改过多次,依然报错,这个也试过:pages/index/index
你的\n导致的应该,敢问你这是用的什么语言开发的。
{"touser":"o1wd85WNZuMPdZqJuFtCDroaD2ls","mp_template_msg":{"appid":"wx4a1a4d043f7110f8","template_id":"v2dREoIos-NgTAz2CiefPacZdGEwZOZliW5M38EB7mo","url":"https://caigou.honwa-steel.com","miniprogram":{"appid":"wx3d7540a2a2168340","pagepath":"pages/index/index?foo=bar"},"data":{"first": {"value":"恭喜您,成功晋级!快去看看吧~","color":"#173177"},"keyword1":{"value":"key1","color":"#173177"},"keyword2":{"value":"key2","color":"#173177"},"keyword3":{"value":"2019年05月31日 10点23分31秒","color":"#173177"},"remark":{"value":"如有疑问,请联系在线客服。","color":"#173177"}}} }
你用数组来写,然后转换json不是更好吗。