|
@@ -479,7 +479,7 @@ public class AiBytedanceAdvertiserStrategyServiceImpl extends ServiceImpl<AiByte
|
|
|
if(age.length>0){
|
|
|
JSONArray ageArray = new JSONArray();
|
|
|
for(int i=0;i<age.length;i++){
|
|
|
- if(null!=age[i]&&!age[i].equals("NONE")){
|
|
|
+ if(null!=age[i]&&!"NONE".equals(age[i])){
|
|
|
ageArray.add(age[i]);
|
|
|
}
|
|
|
}
|
|
@@ -493,7 +493,7 @@ public class AiBytedanceAdvertiserStrategyServiceImpl extends ServiceImpl<AiByte
|
|
|
if(retargetingTagsInclude.length>0){
|
|
|
JSONArray retargetingTagsIncludeArray = new JSONArray();
|
|
|
for(int i=0;i<retargetingTagsInclude.length;i++){
|
|
|
- if(null!=retargetingTagsInclude[i]&&!retargetingTagsInclude[i].equals("NONE")){
|
|
|
+ if(null!=retargetingTagsInclude[i]&&!"NONE".equals(retargetingTagsInclude[i])){
|
|
|
retargetingTagsIncludeArray.add(Long.parseLong(retargetingTagsInclude[i]));
|
|
|
}
|
|
|
}
|
|
@@ -507,7 +507,7 @@ public class AiBytedanceAdvertiserStrategyServiceImpl extends ServiceImpl<AiByte
|
|
|
if(getAdRetargetingTagsExclude.length>0){
|
|
|
JSONArray getAdRetargetingTagsExcludeArray = new JSONArray();
|
|
|
for(int i=0;i<getAdRetargetingTagsExclude.length;i++){
|
|
|
- if(null!=getAdRetargetingTagsExclude[i]&&!getAdRetargetingTagsExclude[i].equals("NONE")){
|
|
|
+ if(null!=getAdRetargetingTagsExclude[i]&&!"NONE".equals(getAdRetargetingTagsExclude[i])){
|
|
|
getAdRetargetingTagsExcludeArray.add(getAdRetargetingTagsExclude[i]);
|
|
|
}
|
|
|
}
|
|
@@ -667,7 +667,7 @@ public class AiBytedanceAdvertiserStrategyServiceImpl extends ServiceImpl<AiByte
|
|
|
if(ac.length>0){
|
|
|
JSONArray acArray = new JSONArray();
|
|
|
for(int i=0;i<ac.length;i++){
|
|
|
- if(null!=ac[i]&&!ac[i].equals("NONE")){
|
|
|
+ if(null!=ac[i]&&!"NONE".equals(ac[i])){
|
|
|
acArray.add(ac[i]);
|
|
|
}
|
|
|
}
|
|
@@ -681,7 +681,7 @@ public class AiBytedanceAdvertiserStrategyServiceImpl extends ServiceImpl<AiByte
|
|
|
if(carrier.length>0){
|
|
|
JSONArray carrierArray = new JSONArray();
|
|
|
for(int i=0;i<carrier.length;i++){
|
|
|
- if(null!=carrier[i]&&!carrier[i].equals("NONE")) {
|
|
|
+ if(null!=carrier[i]&&!"NONE".equals(carrier[i])) {
|
|
|
carrierArray.add(carrier[i]);
|
|
|
}
|
|
|
}
|
|
@@ -818,7 +818,7 @@ public class AiBytedanceAdvertiserStrategyServiceImpl extends ServiceImpl<AiByte
|
|
|
|
|
|
private String getAdName(AiBytedanceAdvertiserStrategy strategy, String dplinkCode, ByteDanceVideoInfo videoInfo) {
|
|
|
String adName = strategy.getAdName();
|
|
|
- if(null == adName||adName.trim().equals("")){
|
|
|
+ if(null == adName|| "".equals(adName.trim())){
|
|
|
return null;
|
|
|
}
|
|
|
if(adName.contains("{{日期}}")){
|
|
@@ -859,13 +859,13 @@ public class AiBytedanceAdvertiserStrategyServiceImpl extends ServiceImpl<AiByte
|
|
|
campaignParam.put("advertiser_id",strategy.getAccountId());
|
|
|
campaignParam.put("campaign_name",campaignName);
|
|
|
campaignParam.put("landing_type",strategy.getCampaignLandingType());
|
|
|
- if(null==strategy.getCampaignBudgetMode()||strategy.getCampaignBudgetMode().equals("")){
|
|
|
+ if(null==strategy.getCampaignBudgetMode()|| "".equals(strategy.getCampaignBudgetMode())){
|
|
|
campaignParam.put("budget_mode","BUDGET_MODE_INFINITE");
|
|
|
}else{
|
|
|
campaignParam.put("budget_mode",strategy.getCampaignBudgetMode());
|
|
|
}
|
|
|
//日预算必须设定预算金额
|
|
|
- if(null!=strategy.getCampaignBudgetMode()&&strategy.getCampaignBudgetMode().equals("BUDGET_MODE_DAY")){
|
|
|
+ if(null!=strategy.getCampaignBudgetMode()&& "BUDGET_MODE_DAY".equals(strategy.getCampaignBudgetMode())){
|
|
|
campaignParam.put("budget",strategy.getCampaignBudget());
|
|
|
}
|
|
|
if(!Check.isNull(strategy.getCampaignDeliveryRelatedNum())){
|
|
@@ -948,7 +948,7 @@ public class AiBytedanceAdvertiserStrategyServiceImpl extends ServiceImpl<AiByte
|
|
|
|
|
|
}
|
|
|
|
|
|
- return Result.successMsg("状态修改成功---》"+(state.equals("0") ? "开" : "关"), null);
|
|
|
+ return Result.successMsg("状态修改成功---》"+("0".equals(state) ? "开" : "关"), null);
|
|
|
}
|
|
|
|
|
|
|