一样的问题!!! 没人解决。。。
wxlog:Error:set token fail, errCode:4, errLog:wx ?wxlog:Error:set token fail, errCode:4, errLog:wx token[] or contextId[(null)] is nil! 微信登录的时候产生了错误。 使用SendAuthReq()后报了以上错误: @objc func wxLogin() { let req = SendAuthReq() req.openID = "wxxxxxxxxxxxxxxxxc" req.scope = "snsapi_userinfo" req.state = "12345" WXApi.send(req) } 使用checkUniversalLinkReady: WXApi.checkUniversalLinkReady { (step, result) in print("step:", step) print("result:", result.success, result.errorInfo, result.suggestion) } 控制台打印: step: WXULCheckStep result: true Universal Link check passed. The application is launched by WeChat via Universal Link step: WXULCheckStep result: true All Check Passed! 微信登录的错误在手机上表现为: 点击App上的登录后,跳转到微信,出现“正在登录中”的提示,后立即返回App。然后报错:set token fail, errCode:4
2021-11-17