fix: 修复token失效时更新token的bug

This commit is contained in:
范鹏 2025-03-27 14:46:10 +08:00
parent 1eb67b0024
commit 261abacc87
4 changed files with 6 additions and 10 deletions

4
env.js
View File

@ -1,7 +1,7 @@
// uni版本号
export const uniVersion = '1.0.8'
export const uniVersion = '1.0.10'
// uni构建号
export const uniBuildNumber = 9
export const uniBuildNumber = 11
// web版本号
export const webVersion = '1.0.1'

4
package-lock.json generated
View File

@ -1,12 +1,12 @@
{
"name": "star-cloud-uni",
"version": "1.0.2",
"version": "1.0.9",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "star-cloud-uni",
"version": "1.0.2",
"version": "1.0.9",
"dependencies": {
"buffer": "^6.0.3",
"crc": "^4.3.2",

View File

@ -1,6 +1,6 @@
{
"name": "star-cloud-uni",
"version": "1.0.8",
"version": "1.0.10",
"type": "module",
"main": "./uni/index.js",
"author": "zzc059",

View File

@ -60,11 +60,7 @@ const request = config => {
if (code === 10003) {
removeStorage('starCloudToken')
removeStorage('starCloudUser')
const { code } = await starCloud.login({
username: starCloud.accountInfo.username,
password: starCloud.accountInfo.password,
uid: starCloud.accountInfo.uid
})
const { code } = await starCloud.login(starCloud.accountInfo.uid, true)
if (code === Result.Success.code) {
resolve(await request(config))
}