获得token 代码 [图片] 发送订阅消息代码 [图片]
后台发送小程序订阅消息报48001https://developers.weixin.qq.com/miniprogram/dev/api/open-api/subscribe-message/wx.requestSubscribeMessage.html 使用:https://api.weixin.qq.com/cgi-bin/message/subscribe/send?access_token= 发订单消息,始终报 { "errcode": 48001, "errmsg": "api unauthorized rid: 61a0f9d2-6a48ff0e-02fb0612" } [图片]
2021-11-27同样的问题,如何解决,找遍了,也找不到有什么地方要设置地
调用微信小程序的模板消息发送接口,报错48001,请问该如何处理?调用微信小程序的模板消息发送接口,报错48001,提示是接口权限问题,小程序上找了个遍,没有找到哪里有给接口权限的地方,还是说是其他地方配置有问题导致的这个接口权限的问题 代码如下: $data['touser'] = $user['openid'];//会员openid $data['template_id'] = "u9cmQAA6A2NhIUfAnlV8qo5MwcZ3lXRu8MNcu4R6KRE";//模板id $data['page'] = "pages/sign/sign"; $data['form_id'] = $act_id; $keydata['keyword1']['value'] = $title; $keydata['keyword2']['value'] = $act_start_time; $keydata['keyword3']['value'] = $address; $keydata['keyword4']['value'] = "尊敬的".$user['user_login'].":您好!\n".$content; $data['data'] = $keydata;//模板内容 $data['emphasis_keyword'] = "keyword1.DATA";//模板内容 $url = "https://api.weixin.qq.com/cgi-bin/message/wxopen/template/send?access_token=".$token; $data = json_encode($data); $res = $this->post_wx($url,$data);//curl传参调用接口接口返回报错: array(2) { ["errcode"]=> int(48001) ["errmsg"]=> string(40) "api unauthorized hint: [8TNZUa0138sz25!]" }
2021-11-26我也遇到同样的问题,有解决的办法吗?
subscribeMessage.send 48001?https://api.weixin.qq.com/cgi-bin/message/subscribe/send?access_token=ACCESS_TOKEN 地址细细检查了,没发现错误,token也是用的小程序的id和密钥获取的,但是还是报48001,这是什么问题?还需要怎么做啊?
2021-11-26