收藏
回答

HTTPS 调用uniformMessage.send 报40003?

HTTPS 调用uniformMessage.send 报40003

{"errcode":40003,"errmsg":"invalid openid rid: 60e65bfc-47cc1778-0cd30429"}

回答关注问题邀请回答
收藏

3 个回答

  • 张三疯
    张三疯
    发表于移动端
    2021-07-08
    服务端收到的post请求体,不是json格式的,而是类似于URL参数那样的格式。请用json格式。
    2021-07-08
    有用
    回复
  • Null砍柴猿
    Null砍柴猿
    2022-07-19

    我也出现了这个问题


    https://api.weixin.qq.com/cgi-bin/message/wxopen/template/uniform_send?access_token=59_7FJLYCcxjdbdR93mJMdOeY4UjjjZRrd8H8nkIjqfRItUU17UmflwcjphOEuuZYHeRYRCmQ2p5drdWClmcKYuRYeHHRGwY9fduIKWOw_6co1tepnHz77wUHt2qez3SG1uJXwDpkcsHD-89sajFLHbAIAUAW

    19:27:14.434 [http-nio-8999-exec-9] ERROR c.z.t.w.s.WxServerService - [sendWxTemplat,333] - 微信模板推送失败,errMsg=invalid openid rid: 62d69512-4e23297b-4b5f3f6b

    19:27:14.434 [http-nio-8999-exec-9] ERROR c.z.t.w.s.WxServerService - [sendWxTemplat,334] - 微信模板推送失败,errCode=40003

    19:27:14.435 [http-nio-8999-exec-9] ERROR c.z.t.w.s.WxServerService - [sendWxTemplat,335] - 微信模板推送失败,WxMsg={"touser":"********************","mp_template_msg":{"appid":"*************************","template_id":"**********************","url":"","miniprogram":{"appid":"********************","pagepath":"pages/orders/orders"},"data":{"first":{"value":"您有订单已支付成功","color":"#173177"},"keyword1":{"value":"NO10000","color":"#173177"},"keyword2":{"value":"已支付","color":"#173177"},"keyword3":{"value":"探海卓越号","color":"#173177"},"keyword4":{"value":"6000","color":"#173177"},"remark":{"value":"如有疑问,请联系客服","color":"#173177"}}}}

    2022-07-19
    有用
    回复 1
    • Null砍柴猿
      Null砍柴猿
      2022-07-19
      touser  是 微信小程序的 openid
      2022-07-19
      回复
  • 留言
    留言
    2021-07-08

    好的,我试试

    2021-07-08
    有用
    回复
登录 后发表内容