소스 검색

修改素材上新逻辑bug--素造视频上传时间延迟

syh 4 년 전
부모
커밋
4b0df4cb0c

+ 6 - 2
jeecg-boot-module-system/src/test/java/org/jeecg/SampleTest.java

@@ -246,8 +246,12 @@ public class SampleTest {
 
     @Test
     public void testData11(){
-        CtopOauthToken token =tokenService.getTokenByAccountId(1683711016125448L);
-        reportService.getAdvertiserPlanRuleData(token,new Date(),new Date(), CtopAdConstant.BYTEDANCE_REPORT_TYPE_DAILY);
+        CtopOauthToken token =tokenService.getTokenByAccountId(9556344L);
+        int dimeDiff = 5;
+        Date now = new Date();
+        String startTime = DateUtils.formatDate("2021-01-11 18:25:00");
+        String endTime = DateUtils.formatDate(now,"2021-01-11 18:35:00");
+        kuaishouInterfaceService.getSuZaoList(token.getAccessToken(), token.getAccountId(), 1, startTime, endTime);
     }
 
     @Test

+ 4 - 3
module-kuaishou/src/main/java/cn/com/ctop/kuaishou/modules/ai/service/impl/AiKuaishouNewCreateCampaignServiceImpl.java

@@ -64,10 +64,11 @@ public class AiKuaishouNewCreateCampaignServiceImpl implements IAiKuaishouNewCre
 
         // 2.2 执行 素造的 视频拉取服务,时间过滤执行 yyyy-MM-dd HH:mm:ss
         // 时间差,单位为分钟
-        int dimeDiff = 5;
+        int timeStart = 5;
+        int timeEnd = 10;
         Date now = new Date();
-        String startTime = DateUtils.formatDate(new Date(now.getTime() - dimeDiff*60*1000),"yyyy-MM-dd HH:mm:ss");
-        String endTime = DateUtils.formatDate(now,"yyyy-MM-dd HH:mm:ss");
+        String startTime = DateUtils.formatDate(new Date(System.currentTimeMillis() - timeStart*60*1000),"yyyy-MM-dd HH:mm:ss");
+        String endTime = DateUtils.formatDate(new Date(System.currentTimeMillis() - timeEnd*60*1000),"yyyy-MM-dd HH:mm:ss");
         kuaishouInterfaceService.getSuZaoList(token.getAccessToken(), token.getAccountId(), 1, startTime, endTime);
 
 

+ 1 - 0
module-kuaishou/src/main/java/cn/com/ctop/kuaishou/modules/batch/service/impl/KuaishouInterfaceServiceImpl.java

@@ -2945,6 +2945,7 @@ public class KuaishouInterfaceServiceImpl implements IKuaishouInterfaceService {
         }
         String result = HttpUtils.httpPostRequest(url, param, headers);
         JSONObject resultJson = JSONObject.parseObject(result);
+        System.out.println(resultJson.toJSONString());
         if (Check.isNull(resultJson)) {
             return;
         }