|
@@ -76,8 +76,6 @@ import java.util.concurrent.Executors;
|
|
|
@Service
|
|
|
public class AiKuaishouProjectCreateCreativeServiceImpl implements IAiKuaishouProjectCreateCreativeService {
|
|
|
@Autowired
|
|
|
- private IKuaiShouGroupService groupService;
|
|
|
- @Autowired
|
|
|
private IKuaiShouGroupTemplateService groupTemplateService;
|
|
|
@Autowired
|
|
|
private ICtopOauthTokenService tokenService;
|
|
@@ -98,8 +96,6 @@ public class AiKuaishouProjectCreateCreativeServiceImpl implements IAiKuaishouPr
|
|
|
@Autowired
|
|
|
private IAiKuaishouAccountLevelOperationRecordService kuaishouAccountLevelOperationRecordService;
|
|
|
@Autowired
|
|
|
- private IAiKuaiShouAppInfoService appInfoService;
|
|
|
- @Autowired
|
|
|
private IAiKuaishouUnitLevelOperationRecordService unitLevelOperationRecordService;
|
|
|
@Autowired
|
|
|
private IAiKuaishouCreativeLevelOperationRecordService creativeLevelOperationRecordService;
|
|
@@ -115,6 +111,14 @@ public class AiKuaishouProjectCreateCreativeServiceImpl implements IAiKuaishouPr
|
|
|
private IKuaishouDirectionalPackageService directionalPackageService;
|
|
|
@Autowired
|
|
|
private IKuaiShouCreativeService kuaiShouCreativeService;
|
|
|
+ @Autowired
|
|
|
+ private IKuaiShouUpdateService updateService;
|
|
|
+ @Autowired
|
|
|
+ private RedisUtil redisUtil;
|
|
|
+ @Autowired
|
|
|
+ private IKuaiShouAppListService appListService;
|
|
|
+ @Autowired
|
|
|
+ private IKuaiShouCampaignService campaignService;
|
|
|
|
|
|
static ExecutorService executorService = Executors.newFixedThreadPool(2);
|
|
|
|
|
@@ -422,10 +426,6 @@ public class AiKuaishouProjectCreateCreativeServiceImpl implements IAiKuaishouPr
|
|
|
insertAccountOperationRecord(strategy, "success", operationType, 1);
|
|
|
}
|
|
|
|
|
|
-
|
|
|
- @Autowired
|
|
|
- private IKuaiShouUpdateService updateService;
|
|
|
-
|
|
|
private void createProgramCreative(CtopOauthToken token, JSONObject creativeParams, KuaishouProjectStrategy strategy) {
|
|
|
Map<String, String> headers = new HashMap<>();
|
|
|
headers.put("Content-Type", "application/json");
|
|
@@ -636,10 +636,6 @@ public class AiKuaishouProjectCreateCreativeServiceImpl implements IAiKuaishouPr
|
|
|
* @param startTime 开始时间
|
|
|
* @param endTime 结束时间
|
|
|
*/
|
|
|
- @Autowired
|
|
|
- private IKuaiShouCampaignService campaignService;
|
|
|
-
|
|
|
-
|
|
|
private List<KuaiShouVideoGet> getVideosByParams(KuaishouProjectStrategy strategy, String startTime, String endTime, AiKuaiShouAppInfo appInfo, Integer createType, Long videoCnt) {
|
|
|
try {
|
|
|
if (createType == 1) {
|
|
@@ -1131,20 +1127,6 @@ public class AiKuaishouProjectCreateCreativeServiceImpl implements IAiKuaishouPr
|
|
|
return Long.valueOf(bidString);
|
|
|
}
|
|
|
|
|
|
- private JSONArray cleanPramgramErrorScence(JSONArray scenceArray) {
|
|
|
- JSONArray result = new JSONArray();
|
|
|
- if (null == scenceArray || scenceArray.isEmpty()) {
|
|
|
- return result;
|
|
|
- }
|
|
|
- for (int i = 0; i < scenceArray.size(); i++) {
|
|
|
- Integer senceId = scenceArray.getInteger(i);
|
|
|
- if (senceId != 5 && senceId != 3) {
|
|
|
- result.add(senceId);
|
|
|
- }
|
|
|
- }
|
|
|
- return result;
|
|
|
- }
|
|
|
-
|
|
|
private void createCreativeByImage(List<MaterialCutFrame> cutFrameList, CtopOauthToken token, JSONObject creativeParams,
|
|
|
Long campaignId, Long unitId, KuaiShouVideoGet videoItem,
|
|
|
int imageNumber, KuaishouProjectStrategy strategy, String uuid, String appVersion) {
|
|
@@ -1276,14 +1258,6 @@ public class AiKuaishouProjectCreateCreativeServiceImpl implements IAiKuaishouPr
|
|
|
* @param wildcard 计划名称/组名称
|
|
|
* @param strategy 账户id
|
|
|
* @return
|
|
|
- */
|
|
|
- @Autowired
|
|
|
- private RedisUtil redisUtil;
|
|
|
- @Autowired
|
|
|
- private IKuaiShouAppListService appListService;
|
|
|
-
|
|
|
-
|
|
|
- /**
|
|
|
* 通配符命名规则
|
|
|
* 日期、渠道号、横竖版(视频素材的横版竖版)、时分、广告位置、素材名称、应用包名、创意制作方式(自定义、程序化)
|
|
|
*/
|
|
@@ -1456,6 +1430,7 @@ public class AiKuaishouProjectCreateCreativeServiceImpl implements IAiKuaishouPr
|
|
|
accountOperationRecord.setMessage(msg);
|
|
|
}
|
|
|
if (status == 0) {
|
|
|
+ accountOperationRecord.setAiStrategyUuid(strategy.getStrategyUuid());
|
|
|
accountOperationRecord.setStatus(status);
|
|
|
accountOperationRecord.setMessage(msg);
|
|
|
}
|