wangzhijun 1 тиждень тому
батько
коміт
41b1b7acb0

+ 3 - 2
nightFragrance-framework/src/main/java/com/ylx/framework/config/SecurityConfig.java

@@ -117,8 +117,9 @@ public class SecurityConfig extends WebSecurityConfigurerAdapter {
                         "/wx/pay/query/order/{outTradeNo}","/api/products/**","/api/user/point/**","/userCenter/userApp/queryBind","/weChat/uuidLogin","/couponReceive/getShareVolutionDetail",
                         "/userCenter/ugit credential rejectserApp/bind/update","/serviceCategory/h5List","/api/lbt/v1/select","/sq/getTechnicianToken"
                         ,"/technician/technician/clientLogin","/technician/technician/wait/list","/technician/technician/getServiceCategoryList"
-                ,"/technician/technician/getTechnician" ,"/technician/technician/getTechnicianInfo","/technician/technician/getSkillList","/technician/technician/getTechnicianList","/technician/technician/apply","/technician/technician/resetPassword"
-                       ).permitAll()
+                ,"/technician/technician/getTechnician" ,"/technician/technician/getTechnicianInfo","/technician/technician/getSkillList","/technician/technician/getTechnicianList",
+                        "/technician/technician/apply","/technician/technician/resetPassword",
+                       "/customer/banner/page","/customer/service/category/**").permitAll()
                 // 静态资源,可匿名访问
                 .antMatchers(HttpMethod.GET, "/", "/*.txt", "/*.html", "/**/*.html", "/**/*.css", "/**/*.js", "/profile/**").permitAll()
                 .antMatchers("/swagger-ui.html", "/swagger-resources/**", "/webjars/**", "/*/api-docs", "/druid/**").permitAll()

+ 0 - 2
nightFragrance-massage/src/main/java/com/ylx/banner/controller/CustomerBannerController.java

@@ -8,7 +8,6 @@ import com.ylx.common.core.domain.R;
 import io.swagger.annotations.Api;
 import io.swagger.annotations.ApiOperation;
 import lombok.extern.slf4j.Slf4j;
-import org.springframework.security.access.prepost.PreAuthorize;
 import org.springframework.web.bind.annotation.PostMapping;
 import org.springframework.web.bind.annotation.RequestMapping;
 import org.springframework.web.bind.annotation.RestController;
@@ -19,7 +18,6 @@ import javax.annotation.Resource;
 @RequestMapping("/customer/banner")
 @Api(tags = {"客户端轮播图"})
 @Slf4j
-@PreAuthorize("@customerAuth.isCustomer()")
 public class CustomerBannerController {
 
     @Resource

+ 0 - 3
nightFragrance-massage/src/main/java/com/ylx/servicecategory/controller/CustomerServiceCategoryController.java

@@ -8,7 +8,6 @@ import com.ylx.servicecategory.service.ServiceCategoryService;
 import io.swagger.annotations.Api;
 import io.swagger.annotations.ApiOperation;
 import lombok.extern.slf4j.Slf4j;
-import org.springframework.security.access.prepost.PreAuthorize;
 import org.springframework.web.bind.annotation.GetMapping;
 import org.springframework.web.bind.annotation.PostMapping;
 import org.springframework.web.bind.annotation.RequestMapping;
@@ -21,8 +20,6 @@ import java.util.List;
 @RestController
 @Api(tags = {"服务类目管理"})
 @RequestMapping("/customer/service/category")
-@PreAuthorize("@customerAuth.isCustomer()")
-
 public class CustomerServiceCategoryController {
 
     @Resource