推送模板消息,报48001错误。从上周五开始推送同一批名单,前几个(10个以内)还是可以正常发送的,后面的都报48001错误。什么原因?
微信开发模板消息推送,回复错误代码48001?发送微信模板消息,模板权限已获得,使用后台python编写发送程序,本地测试,小程序已经注册,可以获得access_token,发送后回复内容为:"errcode":48001,"errmsg":"api unauthorized rid: 620c59ff-25d1138a-55bce6a3" 代码如下 url = 'https://api.weixin.qq.com/cgi-bin/message/template/send' params = { 'access_token': access_token, 'data': { "touser": "xxxxxxxxxxxx", "template_id": "WLSiIt0f0H5WwNILmcf3gY9aADrhjQJ1pJWaHKmz0ZA", "url": "http://weixin.qq.com/download", "topcolor": "#FF0000", "data": { "first": { "value": "您的设备已触发温度报警。", "color": "#173177" }, "keyword1": { "value": "1222032091", "color": "#173177" }, "keyword2": { "value": "温湿度恒温箱", "color": "#173177" }, "keyword3": { "value": "2021年06月07日19时24分", "color": "#173177" }, "keyword4": { "value": "温度超标 45°C", "color": "#173177" }, "remark": { "value": "06月07日19时24分", "color": "#173177" } }, } } response = requests.post(url=url, params=params)
2022-04-18