mirror of
https://github.com/MCSManager/MCSManager.git
synced 2025-01-18 15:04:04 +08:00
添加 - 前端登录已有账号提示
This commit is contained in:
parent
5bf52f94bd
commit
2804feff2b
@ -30,6 +30,11 @@ MCSERVER.login = function (username, password, rand, loginSuccess, loginError, e
|
||||
},
|
||||
success: function (data, textStatus) {
|
||||
var obj = JSON.parse(data);
|
||||
if (typeof obj['ResponseValue'] == 'string') {
|
||||
alert(obj['ResponseValue']);
|
||||
loginError && loginError();
|
||||
return;
|
||||
}
|
||||
if (obj['ResponseValue']) {
|
||||
loginSuccess && loginSuccess();
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user