支持松下E9方式但

yun-zuoyi
wynne1005 4 years ago
parent c1071277da
commit 8d4f36ebef

@ -72,6 +72,10 @@ public class SystemLoginService implements ISystemLoginService {
return AuthUtil.login(ut); return AuthUtil.login(ut);
} }
public static void main(String[] args) {
System.out.println(1+2+"a");
}
@Override @Override
@ApiOperation(value = "用户登录", notes = "管理用户登录") @ApiOperation(value = "用户登录", notes = "管理用户登录")
public SessionUser queryAdminLogin(String loginName, String loginPwd, String languageCode) { public SessionUser queryAdminLogin(String loginName, String loginPwd, String languageCode) {

@ -16,8 +16,8 @@ import cn.estsh.impp.framework.boot.auth.AuthUtil;
import cn.estsh.impp.framework.boot.util.ImppRedis; import cn.estsh.impp.framework.boot.util.ImppRedis;
import cn.estsh.impp.framework.boot.util.RedisCacheTool; import cn.estsh.impp.framework.boot.util.RedisCacheTool;
import cn.estsh.impp.framework.boot.util.ResultBean; import cn.estsh.impp.framework.boot.util.ResultBean;
import cn.estsh.impp.framework.boot.util.ValidatorBean;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import org.apache.commons.lang.StringUtils;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Lazy; import org.springframework.context.annotation.Lazy;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
@ -59,9 +59,9 @@ public class E9LoginStrategy implements ISystemLoginStrategyService {
return ResultBean.fail("单点登录请求未从指定授权服务器发送,校验失败。"); return ResultBean.fail("单点登录请求未从指定授权服务器发送,校验失败。");
} }
licenseClickService.checkLicenseNumberLogin(); licenseClickService.checkLicenseNumberLogin();
ValidatorBean.checkNotNull(loginModel.getLanguageCode(), "语言不能为空");
// TODO 后期移除,暂时用于避免自动登录后前台没有正确的传输组织代码信息 // TODO 后期移除,暂时用于避免自动登录后前台没有正确的传输组织代码信息
if ("null".equals(loginModel.getLanguageCode())) { if ("null".equals(loginModel.getLanguageCode())|| StringUtils.isEmpty(loginModel.getLanguageCode())) {
loginModel.setLanguageCode(DEFAULT_LANGUAGE); loginModel.setLanguageCode(DEFAULT_LANGUAGE);
} }

Loading…
Cancel
Save