소스 검색

减少拉取数量

zhaotx 1 년 전
부모
커밋
f916235ce1
1개의 변경된 파일과 2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      job-bytedance/src/main/java/cn/com/ctop/job/bytedance/data/service/impl/DianzhongConfigServiceImpl.java

+ 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);
                 }
             }