添加 - 前端登录已有账号提示

This commit is contained in:
suwings 2018-04-21 14:49:31 +08:00
parent 5bf52f94bd
commit 2804feff2b

View File

@ -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 {