输出日志

This commit is contained in:
dragon
2024-04-03 14:42:33 +08:00
parent 6674cd5d19
commit 98e98b8d0a

View File

@@ -71,12 +71,13 @@ function getUser () {
url: urlPrefix + '/user/get',
data: { uid: pubInfo.uid },
success (res) {
console.log(res);
if (res.code === 200) {
$('.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 == 1444 : JSON.parse(res).code == 401) {
window.location.href = './login.html'
// window.location.href = './login.html'
} else {
toastMsg(res.message)
}