Ver Fonte

头条失败重试任务

yumeng há 1 ano atrás
pai
commit
3ac0dc3faf

+ 4 - 0
job-bytedance/src/main/java/cn/com/ctop/job/bytedance/data/service/impl/BytedancePromoterReportServiceImpl.java

@@ -50,6 +50,7 @@ public class BytedancePromoterReportServiceImpl implements IBytedancePromoterRep
             JSONObject result = JSONObject.parseObject(s);
             if (Check.isNull(result)) {
                 log.info("账户id:{},日期:{},广告时报(最细粒度)请求结果返回为空", advertiserId, startDate);
+                return;
             }
             List<BytedancePromoterReportHour> hours = new ArrayList<>();
             Integer code = result.getInteger("code");
@@ -82,6 +83,7 @@ public class BytedancePromoterReportServiceImpl implements IBytedancePromoterRep
                 }
             } else {
                 log.info("账户id:{},日期:{}广告时报(最细粒度)请求结果失败,返回数据:{}", advertiserId, startDate, result);
+                return;
 
             }
             if (!Check.isNull(hours)) {
@@ -126,6 +128,7 @@ public class BytedancePromoterReportServiceImpl implements IBytedancePromoterRep
             JSONObject result = JSONObject.parseObject(s);
             if (Check.isNull(result)) {
                 log.info("账户id:{},广告日报(最细粒度)请求结果返回为空", advertiserId);
+                return;
             }
             List<BytedancePromoterReportDaily> promoterReportDailies = new ArrayList<>();
             Integer code = result.getInteger("code");
@@ -156,6 +159,7 @@ public class BytedancePromoterReportServiceImpl implements IBytedancePromoterRep
                 }
             } else {
                 log.info("账户id:{},日期:{}广告日报(最细粒度)请求结果失败,返回数据:{}", advertiserId, startDate, result);
+                return;
 
             }
             if (!Check.isNull(promoterReportDailies)) {