|
@@ -124,6 +124,8 @@ public class AiKuaishouProjectCreateCreativeServiceImpl implements IAiKuaishouPr
|
|
|
private IKuaiShouCampaignService campaignService;
|
|
|
@Autowired
|
|
|
private IKuaiShouGroupService groupService;
|
|
|
+
|
|
|
+
|
|
|
static ExecutorService executorService = Executors.newFixedThreadPool(2);
|
|
|
|
|
|
/**
|
|
@@ -271,8 +273,10 @@ public class AiKuaishouProjectCreateCreativeServiceImpl implements IAiKuaishouPr
|
|
|
insertAccountOperationRecord(strategy, "获取token失败", operationType, 0);
|
|
|
return videoCnt;
|
|
|
}
|
|
|
- //1:获取视频信息
|
|
|
+ //1:获取账户视频信息
|
|
|
kuaishouInterfaceService.getVideoList(token, DateUtils.date2Str(), DateUtils.date2Str());
|
|
|
+ //2:同步项目视频信息
|
|
|
+ projectVideoGetService.clearProjectVideo(strategy.getProjectId(), 1, null);
|
|
|
Long timeStart = KuaishouProjectCreativeMatTypeEnum.getStartTimeByType(strategy.getUnitType().toString() + createType.toString());
|
|
|
Long timeEnd = KuaishouProjectCreativeMatTypeEnum.getEndTimeByType(strategy.getUnitType().toString() + createType.toString());
|
|
|
Long now = System.currentTimeMillis();
|
|
@@ -429,7 +433,9 @@ public class AiKuaishouProjectCreateCreativeServiceImpl implements IAiKuaishouPr
|
|
|
}
|
|
|
//1:获取视频信息
|
|
|
kuaishouInterfaceService.getVideoList(token, DateUtils.date2Str(), DateUtils.date2Str());
|
|
|
- //2:判定账户是否单一应用
|
|
|
+ //2:同步项目视频信息
|
|
|
+ projectVideoGetService.clearProjectVideo(strategy.getProjectId(), 1, null);
|
|
|
+ //3:判定账户是否单一应用
|
|
|
Long timeStart = null;
|
|
|
Long timeEnd = null;
|
|
|
Integer singleAppid = strategy.getSingleAppid();
|