|
@@ -547,7 +547,7 @@ public class AiKuaishouProjectCreateCreativeServiceImpl implements IAiKuaishouPr
|
|
}
|
|
}
|
|
|
|
|
|
if (!Check.isNull(strategy.getActionBarText())) {
|
|
if (!Check.isNull(strategy.getActionBarText())) {
|
|
- programJson.put("action_bar", strategy.getActionBarText());
|
|
|
|
|
|
+ programJson.put("action_bar", getActionBar(strategy.getActionBarText()));
|
|
}
|
|
}
|
|
if (!Check.isNull(strategy.getClickTrackUrl())) {
|
|
if (!Check.isNull(strategy.getClickTrackUrl())) {
|
|
programJson.put("click_url", strategy.getClickTrackUrl());
|
|
programJson.put("click_url", strategy.getClickTrackUrl());
|
|
@@ -1101,6 +1101,15 @@ public class AiKuaishouProjectCreateCreativeServiceImpl implements IAiKuaishouPr
|
|
return num;
|
|
return num;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ public static String getActionBar(String actionBarText) {
|
|
|
|
+ if (Check.isNull(actionBarText)) {
|
|
|
|
+ return null;
|
|
|
|
+ }
|
|
|
|
+ String[] split = actionBarText.split(",");
|
|
|
|
+ int i = getrandom(0, split.length - 1);
|
|
|
|
+ return split[i];
|
|
|
|
+ }
|
|
|
|
+
|
|
private Long getBidByString(String cpaBid) {
|
|
private Long getBidByString(String cpaBid) {
|
|
if (Check.isNull(cpaBid)) {
|
|
if (Check.isNull(cpaBid)) {
|
|
return null;
|
|
return null;
|
|
@@ -1162,7 +1171,7 @@ public class AiKuaishouProjectCreateCreativeServiceImpl implements IAiKuaishouPr
|
|
creativeParams.put("unit_id", unitId);
|
|
creativeParams.put("unit_id", unitId);
|
|
creativeParams.put("photo_id", videoItem.getPhotoId());
|
|
creativeParams.put("photo_id", videoItem.getPhotoId());
|
|
creativeParams.put("creative_material_type", videoItem.getMaterialType());
|
|
creativeParams.put("creative_material_type", videoItem.getMaterialType());
|
|
- creativeParams.put("action_bar_text", strategy.getActionBarText());
|
|
|
|
|
|
+ creativeParams.put("action_bar_text", getActionBar(strategy.getActionBarText()));
|
|
JSONArray descArr = JSONArray.parseArray(strategy.getDescription());
|
|
JSONArray descArr = JSONArray.parseArray(strategy.getDescription());
|
|
int index = new Random().nextInt(descArr.size());
|
|
int index = new Random().nextInt(descArr.size());
|
|
String description = descArr.getString(index);
|
|
String description = descArr.getString(index);
|