Browse Source

[05/22 20:02:47.042][014-exec-9][ERROR][o.a.c.c.C.[.[.[.[dispatcherServlet] : 175]:[ log] || Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed; nested exception is java.lang.NumberFormatException: For input string: "null"] with root cause
java.lang.NumberFormatException: For input string: "null"
at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
at java.lang.Integer.parseInt(Integer.java:580)
at java.lang.Integer.parseInt(Integer.java:615)
at shop.alien.store.service.impl.StoreInfoServiceImpl.getBannerUrl(StoreInfoServiceImpl.java:3635)
at 这块报了错误日志 需要前段排查为什么 发送null

lutong 19 giờ trước cách đây
mục cha
commit
eb6e49f174

+ 3 - 0
alien-store/src/main/java/shop/alien/store/controller/StoreInfoController.java

@@ -483,6 +483,9 @@ public class StoreInfoController {
     @ResponseBody
     public R getStoreCouponList(@RequestParam("storeId") String storeId) {
         log.info("StoreInfoController.getStoreCouponList?storeId={}", storeId);
+        if(storeId == null){
+            return R.fail("storeId错误,不能为null,请联系管理员检查");
+        }
         CouponAndEventVo couponAndEventVo = new CouponAndEventVo();
 //        List<LifeCouponVo> lifeCouponVos = storeInfoService.getStoreCouponList(storeId);