请求:result = requests.post('https://api.weixin.qq.com/cgi-bin/message/subscribe/send?access_token=' + access_token,
data=json.dumps(subscribe_msg)).json()
返回:{'errcode': 40037, 'errmsg': 'invalid template_id rid: 6088c54f-44a0da06-241b2f13'}
template_id已经检查过多次,还是不行
这个需要配置吗
若启用小程序消息推送,用户在手机客户端使用订阅消息功能的相关事件,将会推送至所配置的服务器地址。查看 消息推送配置。
用错token了
'appid': self.appid,
'secret': self.appsecret}
res = requests.get('https://api.weixin.qq.com/cgi-bin/token', params=params).json()
这么获取到的accesstoken,appid appsecret都检查了这如果不正确的话,怎么判断呢