WXAPI-SDK版本:iOS 1.8.7.1
设备系统:iOS 13.4
设备型号:7Plus
微信app版本:7.0.10
appID:wxe2add7049f436c20
问题描述:集成了新版SDK,配置了Universallink(已测试正常使用,微信后台也配置了域名/ext/,如果错误只会提示“应用Universallink不正确”),一切配置都正确(包括AppID)。操作流程:app调起微信,进入app校验读条,返回app,再跳微信,提示“由于应用安全校验不通过,无法完成微信分享”。未连续调用sendReq ,微信日志已经上传,微信号wxid_yb4um8x8ltja21,上传时间2020.5.11 14:05。另外,以下方法有回调,return ture。
func application(_ app: UIApplication, open url: URL, options: [UIApplication.OpenURLOptionsKey: Any] = [:]) -> Bool {
return WXApi.handleOpen(url, delegate: self)
}
func application(_ application: UIApplication, continue userActivity: NSUserActivity, restorationHandler: @escaping ([UIUserActivityRestoring]?) -> Void) -> Bool {
return WXApi.handleOpenUniversalLink(userActivity, delegate: self)
}
控制台log
Step: 0
Step: 1
Step: 2
WeChatSDK:wxlog:set property list
Step: 3
WeChatSDK:wxlog:launch app with ul only success
Step: 4
WeChatSDK:wxlog:Successfully starting WeChat with the universal link.
Step: 5
WeChatSDK:wxlog:WXCheckULStepResult[success: 1, errorInfo: Universal Link check passed. The application is launched by WeChat via Universal Link, suggestion: ]
Step: 6
WeChatSDK:wxlog:WXCheckULStepResult[success: 1, errorInfo: All Check Passed!, suggestion: ]
WeChatSDK:wxlog:launch app with ul only success
WeChatSDK:wxlog:openURL success:1, url:https://help.wechat.com/app/wxe2add7049f436c20/refreshTokenFail/?bundleID=com.zhonglejia.everyenjoy&isShare=1&errCode=5&errMsg=context%5Bb37fe006056c707d911139838bd2d6f86ac2bbfd-2413ea9af24091a487beec05be915687137352cc%5D%20not%20match&wechat_app_bundleId=com.zhonglejia.everyenjoy
麻烦工作人员帮忙看看问题。
你好,先检查一下调用registerApp接口的appid和universal link在微信开放平台是否已经进行绑定;另外,也参考下:
Universal Link校验不通过/接入新SDK,跳到微信后再回跳App,流程就中止?
https://developers.weixin.qq.com/community/develop/doc/000880a051015855aea992f995bc09
SDK log: wxlog:send req[<SendMessageToWXReq: 0x2813bab80>], appID:wxe2add7049f436c20, universalLink:https://shop.zlj365.com/ext/, sdkVersion:1.8.7.1
SDK log: wxlog:set property list
SDK log: wxlog:Error:fail to load Keychain status:-25300, keyData null:1
SDK log: wxlog:token[(null)] is null
SDK log: wxlog:send req[<SendMessageToWXReq: 0x28135ebc0>], appID:wxe2add7049f436c20, universalLink:https://shop.zlj365.com/ext/, sdkVersion:1.8.7.1
SDK log: wxlog:set property list
SDK log: wxlog:Error:fail to load Keychain status:-25300, keyData null:1
SDK log: wxlog:token[(null)] is null
SDK log: wxlog:launch app with ul only success
SDK log: wxlog:launch app with universal link, ret:1
SDK log: wxlog:req:<SendMessageToWXReq: 0x2813bab80>, cid:7e0304d8d1ad09c47bf10f61e86944ac91bacb2b
SDK log: wxlog:launch app with ul only success
SDK log: wxlog:launch app with universal link, ret:1
SDK log: wxlog:req:<SendMessageToWXReq: 0x28135ebc0>, cid:04c1d51656dd9f041f88481717fca5df63dedd4f
SDK log: wxlog:Error:set token fail, errCode:5, errLog:context[04c1d51656dd9f041f88481717fca5df63dedd4f-7e0304d8d1ad09c47bf10f61e86944ac91bacb2b] not match
SDK log: wxlog:Error:check or record token fail, error:Error Domain=WXOpenSDKRefreshTokenError Code=5 "context[04c1d51656dd9f041f88481717fca5df63dedd4f-7e0304d8d1ad09c47bf10f61e86944ac91bacb2b] not match" UserInfo={NSLocalizedDescription=context[04c1d51656dd9f041f88481717fca5df63dedd4f-7e0304d8d1ad09c47bf10f61e86944ac91bacb2b] not match}
SDK log: wxlog:delay launch wx with refresh token fail
SDK log: wxlog:Error:fail to load Keychain status:-25300, keyData null:1
SDK log: wxlog:token[(null)] is null
SDK log: wxlog:set property list
SDK log: wxlog:launch app with ul only success
SDK log: wxlog:openURL success:1, url:https://help.wechat.com/app/wxe2add7049f436c20/refreshTokenFail/?bundleID=com.zhonglejia.everyenjoy&isShare=1&errCode=5&errMsg=context%5B04c1d51656dd9f041f88481717fca5df63dedd4f-7e0304d8d1ad09c47bf10f61e86944ac91bacb2b%5D%20not%20match&wechat_app_bundleId=com.zhonglejia.everyenjoy