修改未登入code
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user