...
|
...
|
@@ -39,11 +39,11 @@ public class LoginService { |
|
|
public Response<UserInfoResponseBO> login(String loginName, String password) throws Exception {
|
|
|
if (StringUtils.isEmpty(loginName)) {
|
|
|
logger.warn("login error. loginName is empty");
|
|
|
return new Response<UserInfoResponseBO>(201, "登录名为空");
|
|
|
return new Response<>(201, "登录名为空");
|
|
|
}
|
|
|
if (StringUtils.isEmpty(password)) {
|
|
|
logger.warn("login error. password is empty. with loginName={}", loginName);
|
|
|
return new Response<UserInfoResponseBO>(202, "密码为空");
|
|
|
return new Response<>(202, "密码为空");
|
|
|
}
|
|
|
|
|
|
String url = erpDomain + PlatformConstant.ERP_LOGIN_URL;
|
...
|
...
|
@@ -57,8 +57,8 @@ public class LoginService { |
|
|
|
|
|
logger.info("enter login with code={}", body.get("code"));
|
|
|
|
|
|
if (!"200".equals(body.get("code"))) {
|
|
|
// return new Response<UserInfoResponseBO>(202, "密码错误");
|
|
|
if (!"200".equals(String.valueOf(body.get("code")))) {
|
|
|
return new Response<>(202, "密码错误");
|
|
|
}
|
|
|
|
|
|
Map<String, Object> data = (Map<String, Object>) body.get("data");
|
...
|
...
|
|