调整 token错误更新

This commit is contained in:
浅念
2026-05-08 13:28:09 +08:00
parent bdd6bd1066
commit 845dff1ef7
5 changed files with 30 additions and 20 deletions
+2 -2
View File
@@ -81,7 +81,7 @@
icon: 'none'
});
} else if (res.data.code == 0) {
} else if (res.data.code == 200) {
//返回数据接收成功
this.mini_login();
}
@@ -111,7 +111,7 @@
}).then(res => {
console.log(res.data);
uni.hideLoading()
if (res.data.code == 0) {
if (res.data.code == 200) {
//存取session
uni.setStorageSync('openid', res.data.data.openid);
uni.setStorageSync('token', res.data.data.token);