微信卡券投放,自定义和非自定义Code 同段代码,自定义返回errcode:-1,而在非自定义Code 时,可以正常投放并返回正确
请求地址 :https://api.weixin.qq.com/cgi-bin/message/mass/send?access_token=Token
提交的json
{
"touser": [
"oJGJ5012d_I8YP5t7ZqhVaod6ww8",
"oJGJ50wZJ_2RbwccXneZ3r-3z1yc"
],
"wxcard": {
"card_id": "pJGJ508RrLO81qqJa6yjHMlq7gUU"
},
"msgtype": "wxcard"
}
接口返回
{"errcode":-1,"errmsg":"system error hint: [x04372277]"}
调试工具返回
200 OK
Connection: keep-alive
Date: Fri, 05 Jul 2019 08:20:18 GMT
Content-Type: application/json; encoding=utf-8
Content-Length: 66
{ "errcode": 40003, "errmsg": "invalid openid hint: [tA9dya08188694]"}
提示:
Invalid OpenID
加群解决
加入自定义code 会报错,不加入就可以正常投放