新的小程序,调用接口进行测试。测试了好多个接口,都是同样的错误。而且没有搜到这个错误码对应的信息,在社区里看到的,也不符合
{ errcode: 48001, errmsg: ‘api unauthorized hint: [zpOYia06491487]’ }
mp-sdk:request GET https://api.weixin.qq.com/cgi-bin/token +0ms
mp-sdk:request {
mp-sdk:request grant_type: ‘client_credential’,
mp-sdk:request appid: ‘wxexxxxxxx’,
mp-sdk:request secret: ‘xxxxx’
mp-sdk:request } +0ms
mp-sdk:response {
mp-sdk:response access_token: ‘xxxxx’,
mp-sdk:response expires_in: 7200
mp-sdk:response } +0ms
mp-sdk:request POST https://api.weixin.qq.com/datacube/getweanalysisappidmonthlyretaininfo +0ms
mp-sdk:request {
mp-sdk:request access_token: ‘xxxxxxxxxx’,
mp-sdk:request begin_date: ‘20190501’,
mp-sdk:request end_date: ‘201905331’
mp-sdk:request } +0ms
mp-sdk:response { errcode: 48001, errmsg: ‘api unauthorized hint: [zpOYia06491487]’ } +0ms
{ errcode: 48001, errmsg: ‘api unauthorized hint: [zpOYia06491487]’ }
参考文档:
封装的sdk: