小程序向微信公众号发送消息提示 40013 invalid appId
40013不合法的 AppID ,请开发者检查 AppID 的正确性,避免异常字符,注意大小写
url https://api.weixin.qq.com/cgi-bin/message/wxopen/template/uniform_send?access_token=%s
请求参数
{
"touser": "o8zutxMq3D1X1m4VUNJryHvXRUy8",
"mp_template_msg": {
"appid": "wxfea0b562b1e333d7",
"template_id": "XLR2Owxktsn4BdihFfTL-z_XpRUBBtd0vNQXGxG6VnY",
"url": "test........",
"miniprogram": {
"appid": "wxfea0b562b1e333d7",
"pagepath": "pages/mine/signed-orders/signed-orders"
},
"data": {
"keyword3": {
"color": "",
"value": "已签署"
},
"keyword1": {
"color": "",
"value": "ZJTRUST-TEST"
},
"keyword2": {
"color": "",
"value": "123456789"
},
"remark": {
"color": "",
"value": "点击查看详情"
},
"first": {
"color": "",
"value": "您的电子合同已签署"
}
}
}
}
code=40013 message=invalid appid rid: 64d0f9f8-5fb6d2de-5cebc1ab
小程序 wxd0a1b8cce4450494 rid: 64d0f9f8-5fb6d2de-5cebc1ab
字面意思就是公众号appid有问题,找人确认一下。
这个地方你填的是公众号appid(要求与小程序有绑定且同主体)吗?