|
@@ -10,7 +10,6 @@ import javax.servlet.http.HttpServletResponse;
|
|
import org.apache.commons.lang3.StringUtils;
|
|
import org.apache.commons.lang3.StringUtils;
|
|
import org.springframework.security.authentication.AbstractAuthenticationToken;
|
|
import org.springframework.security.authentication.AbstractAuthenticationToken;
|
|
import org.springframework.security.authentication.AuthenticationServiceException;
|
|
import org.springframework.security.authentication.AuthenticationServiceException;
|
|
-import org.springframework.security.authentication.LockedException;
|
|
|
|
import org.springframework.security.core.Authentication;
|
|
import org.springframework.security.core.Authentication;
|
|
import org.springframework.security.core.AuthenticationException;
|
|
import org.springframework.security.core.AuthenticationException;
|
|
import org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter;
|
|
import org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter;
|
|
@@ -46,7 +45,7 @@ public class PhoneLoginAuthenticationFilter extends AbstractAuthenticationProces
|
|
tenantId = request.getParameter(tenantIdParameter);
|
|
tenantId = request.getParameter(tenantIdParameter);
|
|
}
|
|
}
|
|
if(StringUtils.isBlank(tenantId)){
|
|
if(StringUtils.isBlank(tenantId)){
|
|
- throw new LockedException("缺少商户编号参数");
|
|
|
|
|
|
+ tenantId = DataSourceContextHolder.TENANT_ID;
|
|
}
|
|
}
|
|
|
|
|
|
DataSourceContextHolder.setDataSourceKey(tenantId);
|
|
DataSourceContextHolder.setDataSourceKey(tenantId);
|