|
@@ -8,7 +8,6 @@ import cn.com.ctop.kuaishou.modules.ai.service.IKuaiShouCreateService;
|
|
import cn.com.ctop.kuaishou.modules.ai.service.IKuaishouLandpagePackageService;
|
|
import cn.com.ctop.kuaishou.modules.ai.service.IKuaishouLandpagePackageService;
|
|
import cn.com.ctop.kuaishou.modules.batch.entity.KuaiShouGroup;
|
|
import cn.com.ctop.kuaishou.modules.batch.entity.KuaiShouGroup;
|
|
import cn.com.ctop.kuaishou.modules.batch.entity.KuaiShouImageGet;
|
|
import cn.com.ctop.kuaishou.modules.batch.entity.KuaiShouImageGet;
|
|
-import cn.com.ctop.kuaishou.modules.batch.entity.KuaiShouVideoGet;
|
|
|
|
import cn.com.ctop.kuaishou.modules.batch.service.*;
|
|
import cn.com.ctop.kuaishou.modules.batch.service.*;
|
|
import com.alibaba.fastjson.JSONArray;
|
|
import com.alibaba.fastjson.JSONArray;
|
|
import com.alibaba.fastjson.JSONObject;
|
|
import com.alibaba.fastjson.JSONObject;
|
|
@@ -276,9 +275,9 @@ public class KuaiShouCreateServiceImpl implements IKuaiShouCreateService {
|
|
if (!Check.isNull(creativeJson.getLong("photo_id"))) {
|
|
if (!Check.isNull(creativeJson.getLong("photo_id"))) {
|
|
createJson.put("photo_id", creativeJson.getLong("photo_id")); // 视频ID
|
|
createJson.put("photo_id", creativeJson.getLong("photo_id")); // 视频ID
|
|
}
|
|
}
|
|
- KuaiShouVideoGet video = videoGetService.getVideoByPhotoId(creativeJson.getLong("photo_id"));
|
|
|
|
- if (!Check.isNull(video)) {
|
|
|
|
- createJson.put("creative_material_type", video.getMaterialType()); // 素材类型
|
|
|
|
|
|
+ // KuaiShouVideoGet video = videoGetService.getVideoByPhotoId(creativeJson.getLong("photo_id"));
|
|
|
|
+ if (!Check.isNull(creativeJson.getInteger("creative_material_type"))) {
|
|
|
|
+ createJson.put("creative_material_type", creativeJson.getInteger("creative_material_type")); // 素材类型
|
|
}
|
|
}
|
|
if (!Check.isNull(creativeJson.getString("action_bar_text"))) {
|
|
if (!Check.isNull(creativeJson.getString("action_bar_text"))) {
|
|
createJson.put("action_bar_text", creativeJson.getString("action_bar_text")); // 行动号召按钮文案
|
|
createJson.put("action_bar_text", creativeJson.getString("action_bar_text")); // 行动号召按钮文案
|