|
@@ -505,13 +505,15 @@ public class AiBytedanceAdvertiserStrategyServiceImpl extends ServiceImpl<AiByte
|
|
//组件id
|
|
//组件id
|
|
JSONArray component = new JSONArray();
|
|
JSONArray component = new JSONArray();
|
|
String componentIdStr = strategy.getComponentId();
|
|
String componentIdStr = strategy.getComponentId();
|
|
- String[] componentId = componentIdStr.split(",");
|
|
|
|
- for (String strId : componentId) {
|
|
|
|
- JSONObject obj = new JSONObject();
|
|
|
|
- obj.put("component_id",new Long(strId));
|
|
|
|
- component.add(obj);
|
|
|
|
- }
|
|
|
|
- creObj.put("component_materials",component);
|
|
|
|
|
|
+ if (!Check.isNull(componentIdStr)){
|
|
|
|
+ String[] componentId = componentIdStr.split(",");
|
|
|
|
+ for (String strId : componentId) {
|
|
|
|
+ JSONObject obj = new JSONObject();
|
|
|
|
+ obj.put("component_id",new Long(strId));
|
|
|
|
+ component.add(obj);
|
|
|
|
+ }
|
|
|
|
+ creObj.put("component_materials",component);
|
|
|
|
+ }
|
|
|
|
|
|
params.put("creative",creObj);
|
|
params.put("creative",creObj);
|
|
return params;
|
|
return params;
|