|
@@ -154,7 +154,7 @@ public class AiKuaishouProjectCreateCreativeServiceImpl implements IAiKuaishouPr
|
|
//创意制作方式,0-不限,4-自定义,7-程序化创意
|
|
//创意制作方式,0-不限,4-自定义,7-程序化创意
|
|
if (strategy.getUnitType() == 4) {
|
|
if (strategy.getUnitType() == 4) {
|
|
this.autoCreateCreative(strategy, 1, customUnitCnt, 1);
|
|
this.autoCreateCreative(strategy, 1, customUnitCnt, 1);
|
|
- } else{
|
|
|
|
|
|
+ } else {
|
|
this.autoCreateProgramCreative(strategy, 1, programUnitCnt, 1);
|
|
this.autoCreateProgramCreative(strategy, 1, programUnitCnt, 1);
|
|
}
|
|
}
|
|
} catch (Exception e) {
|
|
} catch (Exception e) {
|
|
@@ -293,7 +293,7 @@ public class AiKuaishouProjectCreateCreativeServiceImpl implements IAiKuaishouPr
|
|
List<KuaiShouVideoGet> newVideos = new ArrayList<>();
|
|
List<KuaiShouVideoGet> newVideos = new ArrayList<>();
|
|
for (KuaiShouVideoGet newVideo : newVideoList) {
|
|
for (KuaiShouVideoGet newVideo : newVideoList) {
|
|
if (!Check.isNull(newVideo.getPutEndTime()) && !Check.isNull(newVideo.getPutStartTime())) {
|
|
if (!Check.isNull(newVideo.getPutEndTime()) && !Check.isNull(newVideo.getPutStartTime())) {
|
|
- boolean b = DateUtils.checkTimeLimit(new Date(), newVideo.getPutStartTime(), newVideo.getPutEndTime());
|
|
|
|
|
|
+ boolean b = DateUtils.checkTimeLimit(new Date(), DateUtils.parseDate(newVideo.getPutStartTime(), "yyyy-MM-dd HH:mm:ss"), DateUtils.parseDate(newVideo.getPutEndTime(), "yyyy-MM-dd HH:mm:ss"));
|
|
if (b) {
|
|
if (b) {
|
|
newVideos.add(newVideo);
|
|
newVideos.add(newVideo);
|
|
}
|
|
}
|
|
@@ -460,7 +460,7 @@ public class AiKuaishouProjectCreateCreativeServiceImpl implements IAiKuaishouPr
|
|
List<KuaiShouVideoGet> allVideos = new ArrayList<>();
|
|
List<KuaiShouVideoGet> allVideos = new ArrayList<>();
|
|
for (KuaiShouVideoGet newVideo : allVideoList) {
|
|
for (KuaiShouVideoGet newVideo : allVideoList) {
|
|
if (!Check.isNull(newVideo.getPutEndTime()) && !Check.isNull(newVideo.getPutStartTime())) {
|
|
if (!Check.isNull(newVideo.getPutEndTime()) && !Check.isNull(newVideo.getPutStartTime())) {
|
|
- boolean b = DateUtils.checkTimeLimit(new Date(), newVideo.getPutStartTime(), newVideo.getPutEndTime());
|
|
|
|
|
|
+ boolean b = DateUtils.checkTimeLimit(new Date(), DateUtils.parseDate(newVideo.getPutStartTime(), "yyyy-MM-dd HH:mm:ss"), DateUtils.parseDate(newVideo.getPutEndTime(), "yyyy-MM-dd HH:mm:ss"));
|
|
if (b) {
|
|
if (b) {
|
|
allVideos.add(newVideo);
|
|
allVideos.add(newVideo);
|
|
}
|
|
}
|