Browse Source

直播投流

zhaoxian 2 years ago
parent
commit
2bfd63f35e

+ 5 - 0
ruixuan-launch/src/main/java/com/ruixuan/launch/service/impl/KuaishouLaunchCampaignAutoStrategyServiceImpl.java

@@ -135,6 +135,7 @@ public class KuaishouLaunchCampaignAutoStrategyServiceImpl implements IKuaishouL
         for (int i = 0; i < ocpxActionArr.size(); i++) {
             JSONObject ocpx = ocpxActionArr.getJSONObject(i);
             Integer type = ocpx.getInteger("type");
+            strategyJson.put("ocpxActionType", type);
             String cpaBids = ocpx.getString("cpaBid");
             String[] cpaBidArr = new String[0];
             if (Check.isNotNull(cpaBids)) {
@@ -200,9 +201,13 @@ public class KuaishouLaunchCampaignAutoStrategyServiceImpl implements IKuaishouL
                 unitName = unitName.replace("-{{定向包名}}-", template.getTargetName());
                 if (Check.isNotNull(template.getPopulationName())) {
                     unitName = unitName.replace("-{{人群定向名}}-", template.getPopulationName());
+                } else {
+                    unitName = unitName.replace("-{{人群定向名}}-", "");
                 }
                 if (Check.isNotNull(template.getExcludePopulationName())) {
                     unitName = unitName.replace("-{{人群排除名}}-", template.getExcludePopulationName());
+                } else {
+                    unitName = unitName.replace("-{{人群排除名}}-", "");
                 }
             }
         }