小程序
小游戏
企业微信
微信支付
扫描小程序码分享
获取access_token后,给用户推送消息,access_token还未到过期时间,但是消息推送,时好时坏:
2 个回答
加粗
标红
插入代码
插入链接
插入图片
上传视频
你好,请提供公众号appid,是否有授权其他第三方调用影响了呢?
你好,麻烦通过点击下方“反馈信息”按钮,提供出现问题的。
// 【正常案例】
2020-08-25 08:31:56.683 [5] INFO- 发送公众号消息URL:https://api.weixin.qq.com/cgi-bin/message/template/send?access_token=36_zz8Ps_f-GT05wqCC0QNtY8yQvsSnPvT5z7nznGP-E59qHl4yG6lQO_axWRtV_pRh5aF5aOAepbrX-xL1Ag5IJ-FdJM8DJBCbPU1n3SItbE3OihSJ5ON3Os6oklsvWlGhouNf_wdqRjD-WMmiKWXfAIAXJK
2020-08-25 08:31:56.753 [5] INFO- 发送参数消息:{"touser":"oQ05Cwxn0lovag6XshDRHB73yPJY","data":{"keyword3":{"color":"#173177","value":"寿光彤凯国际贸易有限公司"},"keyword1":{"color":"#173177","value":"IPTC-20200531095345-S527331"},"keyword2":{"color":"#173177","value":"卸货审核"},"remark":{"color":"#173177","value":"鲁M65951"},"first":{"color":"#173177","value":"您有一条待审核的通知。"}},"template_id":"lSZ7NCwRbXuxlLBaRrmnV9RMdFz6mX_vxP1sKXMKeWU","url":"https://api.wuchecy.com/tc_h5/yw/#/yundanDetail?refresh=1&id=8da2250afb5e44b8900b68f952db9c57","topcolor":"#FF0000"}
2020-08-25 08:31:57.060 [5] INFO- 发送公众号消息接收到微信返回结果:{"errcode":0,"errmsg":"ok","msgid":1488529062716309507}
// 【失败案例】
2020-08-25 08:32:22.967 [8] INFO- 发送公众号消息URL:https://api.weixin.qq.com/cgi-bin/message/template/send?access_token=36_zz8Ps_f-GT05wqCC0QNtY8yQvsSnPvT5z7nznGP-E59qHl4yG6lQO_axWRtV_pRh5aF5aOAepbrX-xL1Ag5IJ-FdJM8DJBCbPU1n3SItbE3OihSJ5ON3Os6oklsvWlGhouNf_wdqRjD-WMmiKWXfAIAXJK
2020-08-25 08:32:23.015 [8] INFO- 发送公众号消息:{"touser":"oQ05Cw5SLotEliCep4rqNdwRVVEs","data":{"keyword3":{"color":"#173177","value":1},"keyword4":{"color":"#173177","value":"2020-08-25 08:32:22"},"keyword1":{"color":"#173177","value":"IPTC-20200730080158-B893940"},"keyword2":{"color":"#173177","value":"张经理"},"remark":{"color":"#173177","value":"请尽快审核!"},"first":{"color":"#173177","value":"您收到了承运商提交的派车审核通知!"}},"template_id":"pdVWjrhJmytTaLk3vkncI7Rc32TPP186-D4hofMzIyU","url":"https://api.wuchecy.com/tc_h5/yw/#/planDetail?refresh=1&id=a65cc79ea7724c5a881635c4e84eb1c6","topcolor":"#FF0000"}
2020-08-25 08:32:23.237 [8] INFO- 发送公众号消息接收到微信返回结果:{"errcode":40001,"errmsg":"invalid credential, access_token is invalid or not latest rid: 5f445c17-43e157b3-5c2ec09d"}
// 正常案例
2020-08-25 08:36:56.356 [6] INFO- 发送公众号消息URL:https://api.weixin.qq.com/cgi-bin/message/template/send?access_token=36_zz8Ps_f-GT05wqCC0QNtY8yQvsSnPvT5z7nznGP-E59qHl4yG6lQO_axWRtV_pRh5aF5aOAepbrX-xL1Ag5IJ-FdJM8DJBCbPU1n3SItbE3OihSJ5ON3Os6oklsvWlGhouNf_wdqRjD-WMmiKWXfAIAXJK
2020-08-25 08:36:56.425 [6] INFO- 发送公众号消息:{"touser":"oQ05Cw8gXT6h-94wz_ze9iylpY-A","data":{"keyword1":{"color":"#173177","value":"20200825083656186346"},"keyword2":{"color":"#173177","value":"2020-08-25 08:36:56"},"remark":{"color":"#173177","value":"经营部:侯琳琳"},"first":{"color":"#173177","value":"您好,您有一条新的运输计划单。"}},"template_id":"g5qcRi8H5zctqHH6UywY_ghZeySd8njCjgPF2_ioW8c","url":"https://api.wuchecy.com/tc_h5/sj/#/home?refresh=1","topcolor":"#FF0000"}
2020-08-25 08:36:56.722 [6] INFO- 发送公众号消息接收到微信返回结果:{"errcode":0,"errmsg":"ok","msgid":1488534090327883777}
注:上述的access_token都是同样的
老哥你怎么解决的?
关注后,可在微信内接收相应的重要提醒。
请使用微信扫描二维码关注 “微信开放社区” 公众号
你好,请提供公众号appid,是否有授权其他第三方调用影响了呢?
// 【正常案例】
2020-08-25 08:31:56.683 [5] INFO- 发送公众号消息URL:https://api.weixin.qq.com/cgi-bin/message/template/send?access_token=36_zz8Ps_f-GT05wqCC0QNtY8yQvsSnPvT5z7nznGP-E59qHl4yG6lQO_axWRtV_pRh5aF5aOAepbrX-xL1Ag5IJ-FdJM8DJBCbPU1n3SItbE3OihSJ5ON3Os6oklsvWlGhouNf_wdqRjD-WMmiKWXfAIAXJK
2020-08-25 08:31:56.753 [5] INFO- 发送参数消息:{"touser":"oQ05Cwxn0lovag6XshDRHB73yPJY","data":{"keyword3":{"color":"#173177","value":"寿光彤凯国际贸易有限公司"},"keyword1":{"color":"#173177","value":"IPTC-20200531095345-S527331"},"keyword2":{"color":"#173177","value":"卸货审核"},"remark":{"color":"#173177","value":"鲁M65951"},"first":{"color":"#173177","value":"您有一条待审核的通知。"}},"template_id":"lSZ7NCwRbXuxlLBaRrmnV9RMdFz6mX_vxP1sKXMKeWU","url":"https://api.wuchecy.com/tc_h5/yw/#/yundanDetail?refresh=1&id=8da2250afb5e44b8900b68f952db9c57","topcolor":"#FF0000"}
2020-08-25 08:31:57.060 [5] INFO- 发送公众号消息接收到微信返回结果:{"errcode":0,"errmsg":"ok","msgid":1488529062716309507}
// 【失败案例】
2020-08-25 08:32:22.967 [8] INFO- 发送公众号消息URL:https://api.weixin.qq.com/cgi-bin/message/template/send?access_token=36_zz8Ps_f-GT05wqCC0QNtY8yQvsSnPvT5z7nznGP-E59qHl4yG6lQO_axWRtV_pRh5aF5aOAepbrX-xL1Ag5IJ-FdJM8DJBCbPU1n3SItbE3OihSJ5ON3Os6oklsvWlGhouNf_wdqRjD-WMmiKWXfAIAXJK
2020-08-25 08:32:23.015 [8] INFO- 发送公众号消息:{"touser":"oQ05Cw5SLotEliCep4rqNdwRVVEs","data":{"keyword3":{"color":"#173177","value":1},"keyword4":{"color":"#173177","value":"2020-08-25 08:32:22"},"keyword1":{"color":"#173177","value":"IPTC-20200730080158-B893940"},"keyword2":{"color":"#173177","value":"张经理"},"remark":{"color":"#173177","value":"请尽快审核!"},"first":{"color":"#173177","value":"您收到了承运商提交的派车审核通知!"}},"template_id":"pdVWjrhJmytTaLk3vkncI7Rc32TPP186-D4hofMzIyU","url":"https://api.wuchecy.com/tc_h5/yw/#/planDetail?refresh=1&id=a65cc79ea7724c5a881635c4e84eb1c6","topcolor":"#FF0000"}
2020-08-25 08:32:23.237 [8] INFO- 发送公众号消息接收到微信返回结果:{"errcode":40001,"errmsg":"invalid credential, access_token is invalid or not latest rid: 5f445c17-43e157b3-5c2ec09d"}
// 正常案例
2020-08-25 08:36:56.356 [6] INFO- 发送公众号消息URL:https://api.weixin.qq.com/cgi-bin/message/template/send?access_token=36_zz8Ps_f-GT05wqCC0QNtY8yQvsSnPvT5z7nznGP-E59qHl4yG6lQO_axWRtV_pRh5aF5aOAepbrX-xL1Ag5IJ-FdJM8DJBCbPU1n3SItbE3OihSJ5ON3Os6oklsvWlGhouNf_wdqRjD-WMmiKWXfAIAXJK
2020-08-25 08:36:56.425 [6] INFO- 发送公众号消息:{"touser":"oQ05Cw8gXT6h-94wz_ze9iylpY-A","data":{"keyword1":{"color":"#173177","value":"20200825083656186346"},"keyword2":{"color":"#173177","value":"2020-08-25 08:36:56"},"remark":{"color":"#173177","value":"经营部:侯琳琳"},"first":{"color":"#173177","value":"您好,您有一条新的运输计划单。"}},"template_id":"g5qcRi8H5zctqHH6UywY_ghZeySd8njCjgPF2_ioW8c","url":"https://api.wuchecy.com/tc_h5/sj/#/home?refresh=1","topcolor":"#FF0000"}
2020-08-25 08:36:56.722 [6] INFO- 发送公众号消息接收到微信返回结果:{"errcode":0,"errmsg":"ok","msgid":1488534090327883777}
注:上述的access_token都是同样的
老哥你怎么解决的?