修改未登入code

This commit is contained in:
Dragon
2023-08-18 19:27:54 +08:00
parent b2b2cbe10d
commit 06d2f79d49
8 changed files with 19 additions and 19 deletions

View File

@@ -87,7 +87,7 @@ function getUploadToken (type) {
},
});
} else if (res.code == 401) {
} else if (res.code == 1444) {
window.location.href = './login.html'
} else {
toastMsg(res.message)
@@ -159,7 +159,7 @@ function withdrawUserAccount (
setTimeout(function () {
window.location.href = './withdrawal.html'
}, 500)
} else if (res.code ? res.code == 401 : JSON.parse(res).code == 401) {
} else if (res.code ? res.code == 1444 : JSON.parse(res).code == 401) {
window.location.href = './login.html'
} else {
toastMsg(res.message)