Browse Source

开发地址接口和用户端热门推荐接口

wangzhijun 1 ngày trước cách đây
mục cha
commit
bfd528ec87

+ 10 - 9
nightFragrance-framework/src/main/java/com/ylx/framework/config/SecurityConfig.java

@@ -109,17 +109,18 @@ public class SecurityConfig extends WebSecurityConfigurerAdapter {
                 // 过滤请求
                 .authorizeRequests()
                 // 对于登录login 注册register 验证码captchaImage 允许匿名访问
-                .antMatchers("/login", "/register", "/captchaImage", "/technician/technician/getValidateCaptcha","/technician/technician/sendMsg","/wx/login",
+                .antMatchers("/login", "/register", "/captchaImage", "/technician/technician/getValidateCaptcha", "/technician/technician/sendMsg", "/wx/login",
                         "/api/lbt/v1/getAll", "/api/js/v1/select", "/api/xiangmu/v1/wx/getAll", "/api/order/v1/getStatus",
                         "/api/xiangmu/v1/getByid", "/api/xiangmu/v1/highlights", "/api/js/v1/wx/getByid", "/api/js/v1/wx/select", "/api/js/v1/wx/add", "/api/recharge/v1/test",
-                        "/wx/pay/payNotify", "/wx/pay/refundNotify", "/weChat/getAccessToken","/weChat/phoneLogin","/weChat/sendMsg", "/weChat/getCode", "/weChat/verifyToken", "/sq/getAccessToken",
-                        "/area/select", "/system/dept/list", "/api/xiangmu/v1/wx/recommend", "/product/category/create","/area/code","/area/city","/product/category/list",
-                        "/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/getTechnicianList",
-                        "/technician/technician/apply","/technician/technician/resetPassword",
-                       "/customer/banner/page","/customer/service/category/**","/technician/technician/profile").permitAll()
+                        "/wx/pay/payNotify", "/wx/pay/refundNotify", "/weChat/getAccessToken", "/weChat/phoneLogin", "/weChat/sendMsg", "/weChat/getCode", "/weChat/verifyToken", "/sq/getAccessToken",
+                        "/area/select", "/system/dept/list", "/api/xiangmu/v1/wx/recommend", "/product/category/create", "/area/code", "/area/city", "/product/category/list",
+                        "/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/getTechnicianList",
+                        "/technician/technician/apply", "/technician/technician/resetPassword",
+                        "/customer/banner/page", "/customer/service/category/**", "/technician/technician/profile",
+                        "/customer/city/**","/home/hot/recommend").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/home/hot/controller/HomeHotController.java

@@ -8,7 +8,6 @@ import com.ylx.home.hot.service.HomeHotRecommendService;
 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.validation.annotation.Validated;
 import org.springframework.web.bind.annotation.PostMapping;
 import org.springframework.web.bind.annotation.RequestBody;
@@ -21,7 +20,6 @@ import javax.annotation.Resource;
 @RequestMapping("/home/hot")
 @Api(tags = {"用户端首页热门推荐"})
 @Slf4j
-@PreAuthorize("@customerAuth.isCustomer()")
 public class HomeHotController {
 
     @Resource