收藏
回答

公众号授权后,账号详情—授权管理没有相应第三方平台,但是能获取到token,调用接口返回48001?

获取预授权码

求腾讯链接:https://api.weixin.qq.com/cgi-bin/component/api_create_preauthcode?component_access_token=xxxxxxxx,参数:{"component_appid":"wxf41xxxxxxx6924"},
结果:{pre_auth_code=preauthcode@@@BIGOj0wyNFLo0NZO_Y7J4AWrxxxxxxxxxxxxxxxxxxxxxxxxxaOp0VIBGuYuBw8Q, expires_in=1800}

获取授权页链接

获取授权页链接:https://mp.weixin.qq.com/cgi-bin/componentloginpage?component_appid=wxf416924&pre_auth_code=preauthcode@@@BIGOj0wyNFLo0NZO_Y7J4AWrRIQ9gXOF3bik09k3DqU4JxxxxxxxxuBw8Q&redirect_uri=https%3A%2F%2Fweixinqa.xxx.cn%2Freceive%2FgetAuthCode

管理员扫码授权后正常收到授权事件,使用授权码换取公众号的接口调用凭据和授权信息也正常

然后获取公众号信息:(nickName和headImg返回为空)

求url:https://api.weixin.qq.com/cgi-bin/component/api_get_authorizer_info?component_access_token=,
入参:{component_appid=wxf418XXXXXX924, authorizer_appid=wxb6e4XXXXXX50f6},
结果:{authorizer_info={nick_name=, service_type_info={id=0}, verify_type_info={id=0}, user_name=gh_1c9ae3f9f785, alias=, 
qrcode_url=http://mmbiz.qpic.cn/sz_mmbiz_jpg/Jiag9hIM2fBTNzop1eDxN6pyBJTowgn7nCbEpaXabTKBqdzMxuQ9uO7oNX6623S1pyzuugkbhtmqQJVrTACgDvg/0, 
business_info={open_pay=0, open_shake=0, open_scan=0, open_card=0, open_store=0}, idc=1, principal_name=XXXxxxxxxxxXXX, signature=, 
MiniProgramInfo={network={RequestDomain=[], WsRequestDomain=[], UploadDomain=[], DownloadDomain=[], BizDomain=[], UDPDomain=[], TCPDomain=[], PrefetchDNSDomain=[], 
NewRequestDomain=[], NewWsRequestDomain=[], NewUploadDomain=[], NewDownloadDomain=[], NewBizDomain=[], NewUDPDomain=[], NewTCPDomain=[], NewPrefetchDNSDomain=[]}, 
categories=[], visit_status=0}, register_type=-1, account_status=1, basic_config={is_phone_configured=true, is_email_configured=true}}, 
authorization_info={authorizer_appid=wxb6e4b9afc42f50f6, authorizer_refresh_token=refreshtoken@@@qbxxxxxNW9pFeyECgRORIdrcO6sKQOuqIC1U, func_info=[{funcscope_category={id=17}}, 
{funcscope_category={id=19}}, {funcscope_category={id=30}, confirm_info={need_confirm=0, already_confirm=0, can_confirm=0}}, {funcscope_category={id=31}, 
confirm_info={need_confirm=0, already_confirm=0, can_confirm=0}}, {funcscope_category={id=36}}, {funcscope_category={id=37}}, {funcscope_category={id=48}}, {funcscope_category={id=52}}, {funcscope_category={id=57}}]}}


操作完成后公众号后台——账号详情——授权管理中没有相应的第三方平台

使用获得的token调用接口后返回48001

url:https://api.weixin.qq.com/cgi-bin/draft/count?access_token=59_BD-QOmxhrNKbrO2hkiJoRWnHZXcJwiN4-V_dUzm7o0wm9wo4_G55DsgdO0e-Ue0do3yfJbB0_Kjtx6H9abFeP6KqGxxxxxxxxxxxxxxxxxxx77v5IIUMKoEAGcADDNJP,参数:null,结果:{"errcode":48001,"errmsg":"api unauthorized rid: 62fcb411-25ef27f0-5299a71b"}

最后一次编辑于  2022-08-18
回答关注问题邀请回答
收藏
登录 后发表内容