Browse Source

、修改

yumeng 2 tháng trước cách đây
mục cha
commit
ab0344e6c1

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

@@ -52,6 +52,10 @@ public class BytedanceReportNewServiceImpl implements IBytedanceReportNewService
                 s = HttpUtils.httpGet(url, paramsMap, headers);
             }
             JSONObject result = JSONObject.parseObject(s);
+            if(Check.isNull(result)){
+                log.error("获取账户时报报返回结果为空,账户ID:{},返回结果:{}",advertiserId,s);
+                return;
+            }
             List<BytedanceAdvertiserReportHourly> hours = new ArrayList<>();
             Integer code = result.getInteger("code");
             if (code == 0) {