修改未登入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

@@ -49,7 +49,7 @@ function getQueryWithRoomType () {
if (res.code === 200) {
$('.diamond p').text(res.data.diamonds);
$('.gold p').text(res.data.golds);
} 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)
@@ -74,7 +74,7 @@ function getUser () {
$('.myInfo img').attr('src', res.data.avatar);
$('.myInfo div p').text(res.data.nick);
$('.myInfo div b').text("ID:" + res.data.erbanNo);
} 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)