dev-discount
袁野 4 years ago
parent ef97c6568f
commit f2df45094c
  1. 1
      hai-bweb/src/main/java/com/bweb/config/AuthConfig.java
  2. 4
      hai-bweb/src/main/java/com/bweb/controller/BsCompanyController.java

@ -90,6 +90,7 @@ public class AuthConfig implements WebMvcConfigurer {
.excludePathPatterns("/**/springfox-swagger-ui/**")
.excludePathPatterns("/**/swagger-ui.html")
.excludePathPatterns("/login/userLogin")
.excludePathPatterns("/login/logout")
.excludePathPatterns("/common/*")
.excludePathPatterns("/sms/*")
.excludePathPatterns("/cmsContent/get*")

@ -91,8 +91,6 @@ public class BsCompanyController {
SecUser user = secCompanyModel.getUser();
if (StringUtils.isBlank(company.getName())
|| StringUtils.isBlank(company.getRegionId())
|| StringUtils.isBlank(company.getAddress())
|| StringUtils.isBlank(company.getPhone())
|| StringUtils.isBlank(user.getLoginName())
|| StringUtils.isBlank(user.getPassword())
) {
@ -179,8 +177,6 @@ public class BsCompanyController {
SecUser user = secCompanyModel.getUser();
if ( StringUtils.isBlank(company.getName())
|| company.getRegionId() == null
|| StringUtils.isBlank(company.getAddress())
|| StringUtils.isBlank(company.getPhone())
|| company.getId() == null
|| StringUtils.isBlank(user.getLoginName())
|| StringUtils.isBlank(user.getPassword())

Loading…
Cancel
Save