|
|
@ -160,7 +160,7 @@ public class SignInAccountServiceImpl implements SignInAccountService, Applicati
|
|
|
|
public JSONObject clientLoginCheck(LoginInfo loginInfo) {
|
|
|
|
public JSONObject clientLoginCheck(LoginInfo loginInfo) {
|
|
|
|
JSONObject account = clientAccountMapper.findByUsername(loginInfo.getLoginId());
|
|
|
|
JSONObject account = clientAccountMapper.findByUsername(loginInfo.getLoginId());
|
|
|
|
validLoginInfo(loginInfo, account);
|
|
|
|
validLoginInfo(loginInfo, account);
|
|
|
|
publisher.publishEvent(new ClientLoginEvent(this, account.getIntValue("client_id"), account.getIntValue("account_id"), RequestEnvironment.getClientIp(), "PASSWORD"));
|
|
|
|
publisher.publishEvent(new ClientLoginEvent(this, account.getIntValue("client_id"), account.getString("account_id"), RequestEnvironment.getClientIp(), "PASSWORD"));
|
|
|
|
return account;
|
|
|
|
return account;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -236,7 +236,7 @@ public class SignInAccountServiceImpl implements SignInAccountService, Applicati
|
|
|
|
if (account == null) {
|
|
|
|
if (account == null) {
|
|
|
|
throw new ForbiddenException("Your WeChat Account haven't bind to a client user");
|
|
|
|
throw new ForbiddenException("Your WeChat Account haven't bind to a client user");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
publisher.publishEvent(new ClientLoginEvent(this, account.getIntValue("client_id"), account.getIntValue("account_id"), RequestEnvironment.getClientIp(), "wechat"));
|
|
|
|
publisher.publishEvent(new ClientLoginEvent(this, account.getIntValue("client_id"), account.getString("account_id"), RequestEnvironment.getClientIp(), "wechat"));
|
|
|
|
return account;
|
|
|
|
return account;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -246,7 +246,7 @@ public class SignInAccountServiceImpl implements SignInAccountService, Applicati
|
|
|
|
if (account == null) {
|
|
|
|
if (account == null) {
|
|
|
|
return null;
|
|
|
|
return null;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
publisher.publishEvent(new ClientLoginEvent(this, account.getIntValue("client_id"), account.getIntValue("account_id"), RequestEnvironment.getClientIp(), "wechat"));
|
|
|
|
publisher.publishEvent(new ClientLoginEvent(this, account.getIntValue("client_id"), account.getString("account_id"), RequestEnvironment.getClientIp(), "wechat"));
|
|
|
|
return account;
|
|
|
|
return account;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|