1.第一步使用公众号的appid和secret 获取token
2.调用https://api.weixin.qq.com/cgi-bin/message/template/send?access_token发送消息,我的touser 是小程序的openid,我需要到微信开放平台关联主体吗 ?
提示错误:api unauthorized rid: 650a6a8d-6ca691
扫描小程序码分享
1.第一步使用公众号的appid和secret 获取token
2.调用https://api.weixin.qq.com/cgi-bin/message/template/send?access_token发送消息,我的touser 是小程序的openid,我需要到微信开放平台关联主体吗 ?
提示错误:api unauthorized rid: 650a6a8d-6ca691
你好,麻烦提供下完整返回的rid
适配的逻辑:
1)根据小程序openid查到unionid;
2)根据unionid,查到公众号openid;
3)使用公众号openid,下发公众号模板消息
需要传公众号用户的openid,绑定同一个开放平台后,通过unionid匹配