服务端订阅消息发送总是返回40003,appid,access-token和touser是对应的?

小程序 文章 2021-12-08 14:20 20 0 全屏看文

服务端订阅消息发送总是返回40003,appid,access-token和touser是对应的?The server-side subscription message always returns 40003. Do appid, access-token and token correspond?

服务端订阅消息发送总是返回40003,appid,access-token和touser是对应的?

请求参数:

{"touser":"ooigC5bheewXNBnWjBCb8G9FPifg","data":{"phone_number4":{"value":"13000000000"},"name3":{"value":"huang"},"date5":{"value":"2021-12-06 22:12:13"},"thing11":{"value":"on good address"},"character_string8":{"value":"1322342424332442123"}},"template_id":"92HS99UeNQSoarbsJVvHydRQQpj19XHyv666jdlpFCA","miniprogram_state":"developer","page":"pages/all_order/index"}

返回:

{"errcode":40003,"errmsg":"invalid openid rid: 61b0437c-57de737e-47cbfd49"}

求大神指教

请求参数: {"touser":"ooigC5bheewXNBnWjBCb8G9FPifg","data":{"phone_number4":{"value":"13000000000"},"name3":{"value":"huang"},"date5":{"value":"2021-12-06 22:12:13"},"thing11":{"value":"on good address"},"character_string8":{"value":"1322342424332442123"}},"template_id":"92HS99UeNQSoarbsJVvHydRQQpj19XHyv666jdlpFCA","miniprogram_state":"developer","page":"pages/all_order/index"} 返回: {"errcode":40003,"errmsg":"invalid openid rid: 61b0437c-57de737e-47cbfd49"} 求大神指教

回答:

Mr.Zhao:

怎么证明是对应的?

麒麟man:就一个小程序
Mr.Zhao:就当你对吧   你用postman请求下 如果正确,那就是代码问题,再考虑代码
麒麟man:postman也是返回一样的结果
Mr.Zhao:截个图
麒麟man:
Mr.Zhao:把斜杠去掉
Mr.Zhao:害,调错接口了
麒麟man:
麒麟man:OK,现在可以了,谢谢,大神还是大神
麒麟man:
查资料过,说明参数对应不上,但是检查过了appid,access-token,template_id和touser都是对应上的,还有说是json格式问题,怎么转json呢?




宋佳耀:
https://api.weixin.qq.com/cgi-bin/message/subscribe/send?access_token=

小程序订阅消息,应该是这个接口吧?

你的数据格式是没问题的:

看起来是你请求错了接口url了。

-EOF-