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