diff --git a/cash-api/product-server/src/main/java/com/czg/controller/user/HomeController.java b/cash-api/product-server/src/main/java/com/czg/controller/user/HomeController.java index 756da045..92e25355 100644 --- a/cash-api/product-server/src/main/java/com/czg/controller/user/HomeController.java +++ b/cash-api/product-server/src/main/java/com/czg/controller/user/HomeController.java @@ -7,6 +7,7 @@ import com.czg.product.vo.RecommendProVO; import com.czg.resp.CzgResult; import com.mybatisflex.core.paginate.Page; import jakarta.annotation.Resource; +import lombok.extern.slf4j.Slf4j; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; @@ -15,6 +16,7 @@ import org.springframework.web.bind.annotation.RestController; * 小程序主页相关接口 * @author Administrator */ +@Slf4j @RestController @RequestMapping("/user/home") public class HomeController { @@ -43,6 +45,7 @@ public class HomeController { */ @GetMapping("/product") public CzgResult> home(String lng, String lat, String address, Integer categoryId, Integer orderType, Integer distanceType, String name) { + log.info("请求参数, lng: {}, lat: {}, address: {}, caId: {}, orderType: {}, distan: {}, name: {}", lng,lat,address, categoryId, orderType, distanceType, name); return CzgResult.success(homePageService.getProd(lng, lat, address, categoryId, orderType, distanceType, name)); } }