Bläddra i källkod

优惠券开发接口

gongfuzhu 10 månader sedan
förälder
incheckning
4d3a1ecc8b

+ 1 - 1
SpringBatchServiceServer/src/main/java/com/zswl/cloud/springBtach/server/core/service/impl/XiaoJuServiceImpl.java

@@ -605,7 +605,7 @@ public class XiaoJuServiceImpl implements XiaoJuService {
             List<AllowancePromotionInfo> response = queryClient.promotion().queryOrderPromotionList(request);
             apiLog.setResponse(JSONUtil.toJsonStr(response));
             apiLogDao.save(apiLog);
-            return ResultContent.build(ResultState.Success, response);
+            return ResultContent.build(ResultState.Success, response == null ? List.of() : response);
         } catch (Exception e) {
             e.printStackTrace();
             apiLog.setResponse(e.getCause().getCause().getMessage());