|
@@ -82,13 +82,17 @@ public class AiKuaishouCreateCreativeController {
|
|
if (Check.isNull(hour)) {
|
|
if (Check.isNull(hour)) {
|
|
throw new Exception("小时数据为空");
|
|
throw new Exception("小时数据为空");
|
|
}
|
|
}
|
|
- kuaishouCustomCreativeSupplementExecutorService.submit(() -> {
|
|
|
|
- try {
|
|
|
|
- createCreativeService.customCreativeSupplement(strategy, hour);
|
|
|
|
- } catch (ParseException e) {
|
|
|
|
- e.printStackTrace();
|
|
|
|
- }
|
|
|
|
- });
|
|
|
|
|
|
+ if (strategy.getHistoryTop() == 0) {
|
|
|
|
+ kuaishouCustomCreativeSupplementExecutorService.submit(() -> {
|
|
|
|
+ try {
|
|
|
|
+ createCreativeService.customCreativeSupplement(strategy, hour);
|
|
|
|
+ } catch (ParseException e) {
|
|
|
|
+ e.printStackTrace();
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+ } else {
|
|
|
|
+ log.info("高质量暂停搭建,accountId:{}", strategy.getAccountId());
|
|
|
|
+ }
|
|
returnJson.put("code", 0);
|
|
returnJson.put("code", 0);
|
|
returnJson.put("message", "异步创建中");
|
|
returnJson.put("message", "异步创建中");
|
|
} catch (Exception e) {
|
|
} catch (Exception e) {
|