|
@@ -136,9 +136,9 @@ public class AiBytedanceAdvertiserStrategyServiceImpl extends ServiceImpl<AiByte
|
|
|
}
|
|
|
|
|
|
//不使用dp链接
|
|
|
-
|
|
|
+ String date = DateUtils.formatDate();
|
|
|
//组名称
|
|
|
- String campaignName = getCampaignName(strategy,null,null);
|
|
|
+ String campaignName = getCampaignName(strategy,null,date);
|
|
|
//创建组 并返回 组id
|
|
|
Long campaignId = getCampaignId(strategy,campaignName,token);
|
|
|
if(null == campaignId){
|
|
@@ -889,10 +889,7 @@ public class AiBytedanceAdvertiserStrategyServiceImpl extends ServiceImpl<AiByte
|
|
|
adName = adName.replace("{{素材名称}}",info.getMaterialName());
|
|
|
}
|
|
|
}
|
|
|
- if(adName.contains("{{序号}}")){
|
|
|
- int i = adDplinkInfoService.getDpLinkInfoCount(strategy.getAccountId());
|
|
|
- adName = adName.replace("{{序号}}",String.valueOf(i+1));
|
|
|
- }
|
|
|
+
|
|
|
adName = adName.replace("--","-");
|
|
|
if(adName.startsWith("-")){
|
|
|
adName = adName.substring(1);
|
|
@@ -951,14 +948,10 @@ public class AiBytedanceAdvertiserStrategyServiceImpl extends ServiceImpl<AiByte
|
|
|
String campaignSufix = getRangeIndex(strategy.getDpLinkStartIndex(),strategy.getDpLinkEndIndex(),strategy.getCampaignAdCnt(),dplinkIndex);
|
|
|
result = result + campaignSufix;
|
|
|
}
|
|
|
- if(result.contains("{{日期}}")){
|
|
|
- String time = DateUtils.formatDate(new Date(),"yyyyMMdd");
|
|
|
- result = result.replace("{{日期}}",time);
|
|
|
- }
|
|
|
- if(result.contains("{{序号}}")){
|
|
|
- int i = adDplinkInfoService.getDpLinkInfoCount(strategy.getAccountId());
|
|
|
- result = result.replace("{{序号}}",String.valueOf(i+1));
|
|
|
+ if(null!=date&&!date.trim().equals("")) {
|
|
|
+ result = result + "-" + date;
|
|
|
}
|
|
|
+
|
|
|
result = result.replace("--","-");
|
|
|
if(result.startsWith("-")){
|
|
|
result = result.substring(1);
|