我遇到的情况与你一样,但是解决方法不一样。登录回调的方法是: // SceneDelegate file func scene(_ scene: UIScene, continue userActivity: NSUserActivity) { WXApi.handleOpenUniversalLink(userActivity, delegate: WXApiManager.shared) } 开始的时候,我的delegate设置错了,导致没有回调。我代码里的 WXApiManager.shared 是做了delegate的转发,没做其他的
WXLog:Error:set token fail, errCode:4, errLog:wx?API名称:WXApi sendAuthReq,微信版本:8.0.46,基础库版本:微信OpenSDK 2.0.2, 移动应用(APP)做微信登录 目前实现情况:点击微信登录,可以调起微信,确认之后,监听函数没有收到结果 注册WxApi成功,调用WXApi sendAuthReq(scope, state, nonAutomatic), 有几个log, 最后出错 2024-02-20 20:25:28.045204+0800 PTNS[600:63586] [WeChatIdentityHandler.mm]-[WeChatIdentityHandler checkAndRecordTokenToKeychain:contextID:error:]WXLog:Error:set token fail, errCode:4, errLog:wx token[] or contextId[(null)] is nil! 详细些的log是这样: 2024-02-20 20:25:26.987210+0800 PTNS[600:63586] [WXApi.m]+[WXApi sendReq:isAutoResend:forceScheme:completion:]WXLog:send req[<SendAuthReq: 0x2803bd080>], appID:wx86c*******, universalLink:https://******/, sdkVersion:2.0.2 2024-02-20 20:25:26.997210+0800 PTNS[600:63586] [WXApi.m]+[WXApi sendReq:isAutoResend:forceScheme:completion:]WXLog:send req transformToUrl data len:244, erased:0 2024-02-20 20:25:26.997398+0800 PTNS[600:63586] [WXApi.m]+[WXApi sendReq:isAutoResend:forceScheme:completion:]WXLog:gen url with full params ok 2024-02-20 20:25:27.183292+0800 PTNS[600:63586] [WXApi.m]+[WXApi launchApplicationWithUrl:completion:]_block_invokeWXLog:launch app with ul only success 2024-02-20 20:25:27.183469+0800 PTNS[600:63586] [WXApi.m]+[WXApi launchWechatWithExtralUrl:forceScheme:contextId:paramsDataStr:unnecessaryDataErased:completion:]_block_invokeWXLog:launch app with universal link, ret:1 2024-02-20 20:25:27.183620+0800 PTNS[600:63586] [WeChatIdentityHandler.mm]-[WeChatIdentityHandler setContextReq:contextId:]WXLog:req:<SendAuthReq: 0x2803bd080>, cid:ec3113dcfdb3d6f4b197adfdb5c63cfb4a0ac4b986c0e4ab1368c295b5675ce9 2024-02-20 20:25:27.936097+0800 PTNS[600:63586] -[SceneDelegate sceneDidEnterBackground:](56):scene background 2024-02-20 20:25:27.943237+0800 PTNS[600:63586] <MainViewController: 0x130831000> #applicationWillEnterForeground or Will Terminate or applicationWillResignActive 2024-02-20 20:25:27.946337+0800 PTNS[600:63586] <MainViewController: 0x130831000> #applicationWillEnterForeground or Will Terminate or applicationWillResignActive 2024-02-20 20:25:28.026240+0800 PTNS[600:63936] [Common] Snapshot request 0x281816c70 complete with error: <NSError: 0x281820ba0; domain: FBSSceneSnapshotErrorDomain; code: 3; reason: "the request was canceled"> 2024-02-20 20:25:28.029082+0800 PTNS[600:63959] [Common] Snapshot request 0x281881b90 complete with error: <NSError: 0x281894c90; domain: BSActionErrorDomain; code: 6 (anulled)> 2024-02-20 20:25:28.037997+0800 PTNS[600:63586] -[SceneDelegate sceneWillEnterForeground:](43):scene foreground 2024-02-20 20:25:28.045204+0800 PTNS[600:63586] [WeChatIdentityHandler.mm]-[WeChatIdentityHandler checkAndRecordTokenToKeychain:contextID:error:]WXLog:Error:set token fail, errCode:4, errLog:wx token[] or contextId[(null)] is nil! 按照文档说明已验证universalLink可以正常工作。 请问最后这个出错可能是什么原因?
07-22bigZero = new BigInt 直接这样使用会报错。 但是command+左键能点出来!!大佬们这是什么情况!! [图片]
小程序还是不支持BigInt吗?如题
2021-05-30日常催更... 同JS库用到BigInt,而且没找到替代方案
小程序不支持 BigInt 吗?有个JS库中用到了BigInt, 但是在小程序中报错: ReferenceError: BigInt is not defined 请问,谁知道如何解决? 是我工具版本的问题吗?
2021-05-22本地文件怎么都读取不到。最后把文件上传到云端,用下面的方法解决的 wx.cloud.downloadFile({ fileID: 'cloud://test-yzigm.7465-test-yzigm-1301211810/hello.txt', success: res => { wx.getFileSystemManager().readFile({ filePath: res.tempFilePath, success: res => { const result = this.arrayBufferToString(res) console.log(result); }, fail: error => { debugger } }) console.log(res) }, fail: error => { debugger } })
FileSystemManager.copyFile() 一直提示找不到文件?一直提示 找不到要 复制的文件,抓狂!!!! 绝对路径 相对路径都试过了 不行 之前在 旧版 的开发者工具都试过 好的,升级了最新 开发者工具之后就不行了,和这个IDE有关吗?? [图片]
2021-05-20楼主,问一下,按照公告,苹果企业账号只能1天100次吗
苹果企业账号下开发的APP申请绑定微信开放平台也属于未上架应用吗?也有调用次数限制吗?苹果企业账号下开发的APP申请绑定微信开放平台也属于未上架应用吗?也有调用次数限制吗?
2020-07-24