|
@@ -87,6 +87,10 @@ public class KuaishouHostingTaskServiceImpl extends ServiceImpl<KuaishouHostingT
|
|
|
task.setPhotoInfos(videoInfo.toString());
|
|
|
task.setName(getName(template.getName(), task.getAccountId()));
|
|
|
task.setHostingScene(template.getHostingScene());
|
|
|
+ String sceneIds = template.getSceneIds();
|
|
|
+ if (!Check.isNull(sceneIds)) {
|
|
|
+ task.setSceneIds(sceneIds);
|
|
|
+ }
|
|
|
task.setCampaignType(template.getCampaignType());
|
|
|
if (!Check.isNull(template.getAppId())) {
|
|
|
task.setAppId(template.getAppId());
|
|
@@ -167,6 +171,7 @@ public class KuaishouHostingTaskServiceImpl extends ServiceImpl<KuaishouHostingT
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+
|
|
|
@Override
|
|
|
public void createHosting(Long id) {
|
|
|
try {
|
|
@@ -192,6 +197,14 @@ public class KuaishouHostingTaskServiceImpl extends ServiceImpl<KuaishouHostingT
|
|
|
requestJson.put("advertiser_id", task.getAccountId());
|
|
|
requestJson.put("name", task.getName());
|
|
|
requestJson.put("hosting_scene", task.getHostingScene());
|
|
|
+
|
|
|
+ String sceneIds = task.getSceneIds();
|
|
|
+ if (!Check.isNull(sceneIds)) {
|
|
|
+ JSONArray scene_ids = JSONArray.parseArray(sceneIds);
|
|
|
+ if (!Check.isNull(scene_ids)) {
|
|
|
+ requestJson.put("scene_ids", scene_ids);
|
|
|
+ }
|
|
|
+ }
|
|
|
requestJson.put("campaign_type", task.getCampaignType());
|
|
|
if (!Check.isNull(task.getAppId())) {
|
|
|
requestJson.put("app_id", task.getAppId());
|