Ver Fonte

、修改

yumeng há 2 meses atrás
pai
commit
44f9fc1ee4

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

@@ -158,6 +158,11 @@ 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<BytedanceAdvertiserReportDaily> dailies = new ArrayList<>();
             Integer code = result.getInteger("code");
             if (code == 0) {