zhouzeyu@c-top.com.cn преди 4 години
родител
ревизия
9d8baca3d6
променени са 1 файла, в които са добавени 4 реда и са изтрити 0 реда
  1. 4 0
      job-bytedance/src/main/java/cn/com/ctop/job/bytedance/handler/BytedanceFileGetLoadJob.java

+ 4 - 0
job-bytedance/src/main/java/cn/com/ctop/job/bytedance/handler/BytedanceFileGetLoadJob.java

@@ -48,6 +48,7 @@ public class BytedanceFileGetLoadJob {
         }
         String nowDate = DateUtils.getNowDate("yyyy-MM-dd");
         String yesterda = DateUtils.getAnotherDay("yyyy-MM-dd", nowDate, -1);
+        String yesterda2 = DateUtils.getAnotherDay("yyyy-MM-dd", nowDate, -2);
         String token = tokenService.getByAccountId(Long.valueOf(param));
         if (Check.isNull(token)) {
             log.error("此账户未获取到相关token,accountId:{}", param);
@@ -57,6 +58,7 @@ public class BytedanceFileGetLoadJob {
         oauthToken.setAccessToken(token);
         oauthToken.setAccountId(Long.parseLong(param));
         fileImageService.getFileImageData(oauthToken, yesterda, yesterda, 1, 100);
+        fileImageService.getFileImageData(oauthToken, yesterda2, yesterda2, 1, 100);
     }
 
 
@@ -75,6 +77,7 @@ public class BytedanceFileGetLoadJob {
         String token = tokenService.getByAccountId(Long.valueOf(param));
         String nowDate = DateUtils.getNowDate("yyyy-MM-dd");
         String yesterda = DateUtils.getAnotherDay("yyyy-MM-dd", nowDate, -1);
+        String yesterda2 = DateUtils.getAnotherDay("yyyy-MM-dd", nowDate, -2);
         if (Check.isNull(token)) {
             log.error("此账户未获取到相关token,accountId:{}", param);
             return;
@@ -83,6 +86,7 @@ public class BytedanceFileGetLoadJob {
         oauthToken.setAccessToken(token);
         oauthToken.setAccountId(Long.parseLong(param));
         fileVideoService.getFileVideoData(oauthToken, yesterda, yesterda, 1, 100);
+        fileVideoService.getFileVideoData(oauthToken, yesterda2, yesterda2, 1, 100);
     }