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