徐开
徐开
  • 发布:2024-08-20 21:02
  • 更新:2024-08-20 21:02
  • 阅读:342

微信小程序一键登录 失败提示

分类:uni-app

"method": "loginByWeixin",
"params": [
{
"code": "0a3u5s100TDCFS1LpW000MeJGn2u5s1D"
}
],
"clientInfo": {
"PLATFORM": "mp-weixin",
"OS": "ios",
"APPID": "UNI645C944",
"DEVICEID": "17240819255799784301",
"scene": 1089,
"safeArea": {
"bottom": 862,
"height": 818,
"top": 44,
"width": 414,
"left": 0,
"right": 414
},
"notificationAuthorized": true,
"locationEnabled": true,
"batteryLevel": 50,
"bluetoothEnabled": true,
"fontSizeScaleFactor": 1,
"screenWidth": 414,
"locationAuthorized": true,
"windowHeight": 726,
"phoneCalendarAuthorized": false,
"microphoneEnabled": true,
"wifiEnabled": true,
"bluetoothAuthorized": true,
"memorySize": 3754,
"screenHeight": 896,
"locationReducedAccuracy": false,
"statusBarHeight": 44,
"windowWidth": 414,
"albumAuthorized": true,
"notificationAlertAuthorized": true,
"benchmarkLevel": 30,
"notificationBadgeAuthorized": true,
"screenTop": 88,
"notificationSoundAuthorized": true,
"microphoneAuthorized": true,
"cameraAuthorized": true,
"deviceOrientation": "portrait",
"enableDebug": true,
"devicePixelRatio": 3,
"mode": "default",
"deviceId": "17240819255799784301",
"safeAreaInsets": {
"top": 44,
"left": 0,
"right": 0,
"bottom": 34
},
"appId": "UNI645C944",
"appName": "uni-starter",
"appVersion": "1.0.0",
"appVersionCode": "100",
"appLanguage": "zh-Hans",
"uniCompileVersion": "3.8.3",
"uniRuntimeVersion": "3.8.3",
"uniPlatform": "mp-weixin",
"deviceBrand": "iphone",
"deviceModel": "iPhone XS Max China-exclusive<iPhone11,6>",
"deviceType": "phone",
"osName": "ios",
"osVersion": "17.5.1",
"hostVersion": "8.0.50",
"hostLanguage": "zh-CN",
"hostName": "WeChat",
"hostSDKVersion": "3.5.4",
"hostFontSizeSetting": 17,
"windowTop": 0,
"windowBottom": 0,
"locale": "zh-Hans",
"LOCALE": "zh-Hans"
}
},
"requestId": "ac1cc3051724157317736108203"
}
[uni-id-co/ac1cc3051724157317736108203/366ms/ERROR] invalid code, rid: 66c48d86-4409ad6e-3ecdf5c1
Error: invalid code, rid: 66c48d86-4409ad6e-3ecdf5c1
at generateApiResult (/tmp/function/lib/third-party/weixin/normalize.js:10:11)
at callWxOpenApi (/tmp/function/lib/third-party/weixin/normalize.js:73:5)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at _requestWxOpenapi (/tmp/function/lib/third-party/weixin/account/index.js:21:20)
at code2Session (/tmp/function/lib/third-party/weixin/account/index.js:33:20)
at module.exports (/tmp/function/module/login/login-by-weixin.js:65:30)
at c (/tmp/function/__index.js:1:2736)
at Me (/tmp/function/index.js:1:85015)
at Fe (/tmp/function/index.js:1:86102)
at runUserFunction (/code/index.js:93:265116)
请求响应状态: success
请问这是什么原因造成的

2024-08-20 21:02 负责人:无 分享
已邀请:

要回复问题请先登录注册