Browse Source

减少拉取数量

zhaotx 1 năm trước cách đây
mục cha
commit
f916235ce1

+ 2 - 2
job-bytedance/src/main/java/cn/com/ctop/job/bytedance/data/service/impl/DianzhongConfigServiceImpl.java

@@ -87,7 +87,7 @@ public class DianzhongConfigServiceImpl implements IDianzhongConfigService {
 
     @Override
     public void pullMovie() throws IOException {
-        pullMoviePage(1100, 100);
+        pullMoviePage(0, 100);
     }
 
     @Override
@@ -113,7 +113,7 @@ public class DianzhongConfigServiceImpl implements IDianzhongConfigService {
             String res = HttpUtils.httpGet(url, null, headers);
             if (StringUtils.isNotEmpty(res)){
                 pullMovieInfo(res);
-                if (offset < 2000){ //每次只拉最近300个
+                if (offset < 200){ //每次只拉最近300个
                     pullMoviePage(offset+limit, limit);
                 }
             }