|
@@ -663,14 +663,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");
|
|
@@ -699,7 +698,9 @@ public class ByteDanceAdvertiserDataServiceImpl implements IByteDanceAdvertiserD
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- getAgentReportByPage(token, conditions, cursor);
|
|
|
|
|
|
+ if (has_more == 1) {
|
|
|
|
+ getAgentReportByPage(token, conditions, cursor);
|
|
|
|
+ }
|
|
|
|
|
|
|
|
|
|
}
|
|
}
|