Bläddra i källkod

批量 功能优化, 添加媒体定向

zhaoxian 2 år sedan
förälder
incheckning
afdffdc6df

+ 1 - 2
jeecg-boot-module-system/src/main/java/cn/com/ctop/kuaishou/modules/batch/service/impl/KuaishouBatchCreativePreviewServiceImpl.java

@@ -8,7 +8,6 @@ import cn.com.ctop.common.module.utils.Check;
 import cn.com.ctop.common.module.utils.HttpUtils;
 import cn.com.ctop.common.module.utils.KuaishouInterfaceConstant;
 import cn.com.ctop.common.module.utils.PropertiesUtils;
-import cn.com.ctop.kuaishou.modules.ai.service.IKuaishouLandpagePackageService;
 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.entity.KuaishouBatchCampaignPreview;
@@ -291,7 +290,7 @@ public class KuaishouBatchCreativePreviewServiceImpl extends ServiceImpl<Kuaisho
             Integer firstSceneId = valueOf(scene_id.get(0).toString());
             Long templateId = groupPreview.getTemplateId();
             if (!Check.isNull(templateId)) {
-                if (firstSceneId != 5) {
+                if (firstSceneId != 5 && firstSceneId != 1) {
                     unitJson.put("template_id", templateId);
                 } else {
                     JSONObject unionJson = groupTemplateService.getUnionJson(templateId);