小程序
小游戏
企业微信
微信支付
扫描小程序码分享
如题,整的云里雾里!
使用接口权限下的模版ID是OK的,使用订阅通知的一次性订阅就说模版ID 错误
看了文档,让用户主动授权的代码接口都是一样的 "https://mp.weixin.qq.com/mp/subscribemsg?"
谁能解释一下?
2 个回答
加粗
标红
插入代码
插入链接
插入图片
上传视频
$url = "https://mp.weixin.qq.com/mp/subscribemsg?" . http_build_query([ 'action' => 'get_confirm', 'appid' => $appid, 'scene' => $scene, 'template_id' => $template_id, 'redirect_url' => $redirect_url, 'reserved' => $reserved ]) . '#wechat_redirect';
无论是一次性订阅消息,还是订阅通知一次性订阅,都是这个url去让用户去授权订阅,更换了模版Id就会报错!!!
你好,麻烦通过点击下方“反馈信息”按钮,提供出现问题的。
说的是公众号的一次性订阅消息?这个订阅消息模板ID是固定的,看看这个文档
https://developers.weixin.qq.com/doc/offiaccount/Message_Management/One-time_subscription_info.html
关注后,可在微信内接收相应的重要提醒。
请使用微信扫描二维码关注 “微信开放社区” 公众号
$url = "https://mp.weixin.qq.com/mp/subscribemsg?" . http_build_query([ 'action' => 'get_confirm', 'appid' => $appid, 'scene' => $scene, 'template_id' => $template_id, 'redirect_url' => $redirect_url, 'reserved' => $reserved ]) . '#wechat_redirect';
无论是一次性订阅消息,还是订阅通知一次性订阅,都是这个url去让用户去授权订阅,更换了模版Id就会报错!!!
说的是公众号的一次性订阅消息?这个订阅消息模板ID是固定的,看看这个文档
https://developers.weixin.qq.com/doc/offiaccount/Message_Management/One-time_subscription_info.html
https://developers.weixin.qq.com/doc/offiaccount/OA_Web_Apps/Wechat_Open_Tag.html#%E6%9C%8D%E5%8A%A1%E5%8F%B7%E8%AE%A2%E9%98%85%E9%80%9A%E7%9F%A5%E6%8C%89%E9%92%AE-wx-open-subscribe