请求地址不对 你这个是小程序的 公众号应该是https://api.weixin.qq.com/cgi-bin/message/template/send?access_token
公众号模板消息推送,出现的错误48001怎么处理?接口是:https://api.weixin.qq.com/cgi-bin/message/wxopen/template/uniform_send?access_token=access_token 参数信息: [代码]{[代码][代码] [代码][代码]"touser"[代码][代码]:[代码][代码]"open_id"[代码][代码],[代码][代码] [代码][代码]"mp_template_msg"[代码][代码]:{[代码][代码] [代码][代码]"appid"[代码][代码]:[代码][代码]"公众号appid"[代码][代码],[代码][代码] [代码][代码]"template_id"[代码][代码]:[代码][代码]"U59TL-5993SHJ_qcatSeKzDraZoaP0QNKolqyiiTa0Y"[代码][代码],[代码][代码] [代码][代码]"url"[代码][代码]:[代码][代码]"http://weixin.qq.com/download"[代码][代码],[代码][代码] [代码][代码]"miniprogram"[代码][代码]:{[代码][代码] [代码][代码]"appid"[代码][代码]:[代码][代码]"小程序appid"[代码][代码],[代码][代码] [代码][代码]"pagepath"[代码][代码]:[代码][代码]"index?foo=bar"[代码][代码] [代码][代码]},[代码][代码] [代码][代码]"data"[代码][代码]:{[代码][代码] [代码][代码]"first"[代码][代码]:{[代码][代码] [代码][代码]"value"[代码][代码]:[代码][代码]"恭喜你购买成功!"[代码][代码],[代码][代码] [代码][代码]"color"[代码][代码]:[代码][代码]"#173177"[代码][代码] [代码][代码]},[代码][代码] [代码][代码]"keyword1"[代码][代码]:{[代码][代码] [代码][代码]"value"[代码][代码]:[代码][代码]"巧克力"[代码][代码],[代码][代码] [代码][代码]"color"[代码][代码]:[代码][代码]"#173177"[代码][代码] [代码][代码]},[代码][代码] [代码][代码]"keyword2"[代码][代码]:{[代码][代码] [代码][代码]"value"[代码][代码]:[代码][代码]"39.8元"[代码][代码],[代码][代码] [代码][代码]"color"[代码][代码]:[代码][代码]"#173177"[代码][代码] [代码][代码]},[代码][代码] [代码][代码]"keyword3"[代码][代码]:{[代码][代码] [代码][代码]"value"[代码][代码]:[代码][代码]"2014年9月22日"[代码][代码],[代码][代码] [代码][代码]"color"[代码][代码]:[代码][代码]"#173177"[代码][代码] [代码][代码]},[代码][代码] [代码][代码]"remark"[代码][代码]:{[代码][代码] [代码][代码]"value"[代码][代码]:[代码][代码]"欢迎再次购买!"[代码][代码],[代码][代码] [代码][代码]"color"[代码][代码]:[代码][代码]"#173177"[代码][代码] [代码][代码]}[代码][代码] [代码][代码]}[代码][代码] [代码][代码]}[代码][代码]}[代码]报错信息为: [代码]{[代码][代码] [代码][代码]"errcode"[代码][代码]: [代码][代码]48001[代码][代码],[代码][代码] [代码][代码]"errmsg"[代码][代码]: [代码][代码]"api unauthorized hints: [qGHFOZ3Me-paaaHa!]"[代码][代码]}[代码]
2020-07-10