Browse Source

代理商数据

yumeng 1 year ago
parent
commit
e54b248887

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

@@ -658,14 +658,13 @@ public class ByteDanceAdvertiserDataServiceImpl implements IByteDanceAdvertiserD
             return;
             return;
         }
         }
         Integer code = getObject.getInteger("code");
         Integer code = getObject.getInteger("code");
+        Integer has_more = 0;
         if (code == 0) {
         if (code == 0) {
             JSONObject dataJson = getObject.getJSONObject("data");
             JSONObject dataJson = getObject.getJSONObject("data");
             if (!Check.isNull(dataJson)) {
             if (!Check.isNull(dataJson)) {
                 JSONObject cursorInfo = dataJson.getJSONObject("cursor_info");
                 JSONObject cursorInfo = dataJson.getJSONObject("cursor_info");
                 if (!Check.isNull(cursorInfo)) {
                 if (!Check.isNull(cursorInfo)) {
-                    if (cursorInfo.getInteger("has_more") == 2) {
-                        return;
-                    }
+                    has_more = cursorInfo.getInteger("has_more");
                     cursor = cursorInfo.getLong("cursor");
                     cursor = cursorInfo.getLong("cursor");
                 }
                 }
                 JSONArray dataArray = dataJson.getJSONArray("list");
                 JSONArray dataArray = dataJson.getJSONArray("list");
@@ -694,7 +693,9 @@ public class ByteDanceAdvertiserDataServiceImpl implements IByteDanceAdvertiserD
                 return;
                 return;
             }
             }
         }
         }
-        getAgentReportByPage(token, conditions, cursor);
+        if (has_more == 1) {
+            getAgentReportByPage(token, conditions, cursor);
+        }
 
 
 
 
     }
     }