调用快速注册试用小程序接口生成授权链接,在微信页面确认授权后,接受到两条回调消息,infoType=notify_third_fastregisterbetaapp和infoType=authorized,由于先接受到infoType=authorized的消息,导致无法确认这条authorized消息对应我们平台那条小程序记录,如何处理?
消息内容:WxOpenXmlMessage(appId=wx6e6ab62c8c0f17a4, createTime=1755140047, infoType=authorized, componentVerifyTicket=null, authorizerAppid=wx8964fb8f9a854e18, authorizationCode=queryauthcode@@@SY-d7EnsdTcIuTXUSSPCfInr21UyKehzhWopQWUYFG_5fw9z3FRNKlqgwWvBDL2soQWE31MaCaIu0ThaqfkhDw, authorizationCodeExpiredTime=1755143647, preAuthCode=preauthcode@@@Dc81POdvqoaaDDUUEe1vhmNKPIvUm0TgJWRwoRt4esM528UrCM3v9VRDEBlSJu9C897HgKl0l_5U2_8DxNgRrA, subAppId=null, status=0, authCode=null, msg=null, info=WxOpenXmlMessage.Info(name=null, code=null, codeType=0, legalPersonaWechat=null, legalPersonaName=null, componentPhone=null, wxuser=null, idname=null, uniqueId=null), taskId=null, taskStatus=null, applyStatus=null, message=null, dispatchInfo=null, expired=null, IcpVerifyTaskId=null, verifyAppId=null, result=null, alongWithAuthResult=null, beianAuthorizerAppId=null, beianStatus=null, procedureId=null, procedureStatus=null, context=<xml><AppId><![CDATA[wx6e6ab62c8c0f17a4]]></AppId>
<CreateTime>1755140047</CreateTime>
<InfoType><![CDATA[authorized]]></InfoType><AuthorizerAppid><![CDATA[wx8964fb8f9a854e18]]></AuthorizerAppid><AuthorizationCode><![CDATA[queryauthcode@@@SY-d7EnsdTcIuTXUSSPCfInr21UyKehzhWopQWUYFG_5fw9z3FRNKlqgwWvBDL2soQWE31MaCaIu0ThaqfkhDw]]></AuthorizationCode><AuthorizationCodeExpiredTime><![CDATA[1755143647]]></AuthorizationCodeExpiredTime><PreAuthCode><![CDATA[preauthcode@@@Dc81POdvqoaaDDUUEe1vhmNKPIvUm0TgJWRwoRt4esM528UrCM3v9VRDEBlSJu9C897HgKl0l_5U2_8DxNgRrA]]></PreAuthCode><RedirectUri><![CDATA[]]></RedirectUri><BusinessData><![CDATA[]]></BusinessData></xml>)
你好,授权成功通知里也会返回授权账号AppID(这个就是试用小程序的AppID),无法匹配是指什么意思?https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/api/Before_Develop/authorize_event.html

1、去拉取https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/api/Before_Develop/creat_token.html接口调用令牌authorizer_access_token 及刷新令牌authorizer_refresh_token
2、可以通过接口调用令牌authorizer_access_token 调用获取基本信息接口拉取小程序基本信息 https://developers.weixin.qq.com/doc/oplatform/openApi/OpenApiDoc/miniprogram-management/basic-info-management/getAccountBasicInfo.html
在调用快速注册试用小程序接口时我们这条小程序记录信息只有uniqueId。没法通过authorizer_appid匹配