Parcourir la source

V1.1.2 自动投放 查询素材接口加入横竖版区分

yumeng il y a 4 ans
Parent
commit
6e10b98f2a

+ 2 - 0
module-kuaishou/src/main/java/cn/com/ctop/kuaishou/modules/ai/controller/KuaiShouMaterialControer.java

@@ -153,6 +153,7 @@ public class KuaiShouMaterialControer {
                         String signature = videoGet.getSignature();
                         materialJson.put("signature", signature);
                         materialJson.put("video_url", videoGet.getUrl());
+                        materialJson.put("material_type", videoGet.getMaterialType());
                         materialJson.put("channel_type", videoGet.getChannelType());
                         List<String> imageList = lastTimeService.getImageListByMd5(signature);
                         materialJson.put("imageList", imageList);
@@ -279,6 +280,7 @@ public class KuaiShouMaterialControer {
                         materialJson.put("signature", signature);
                         materialJson.put("video_url", videoGet.getUrl());
                         materialJson.put("channel_type", videoGet.getChannelType());
+                        materialJson.put("material_type", videoGet.getMaterialType());
                         List<String> imageList = lastTimeService.getImageListByMd5(signature);
                         materialJson.put("imageList", imageList);
                     }

+ 1 - 0
module-kuaishou/src/main/java/cn/com/ctop/kuaishou/modules/batch/mapper/xml/KuaiShouVideoGetMapper.xml

@@ -92,6 +92,7 @@
         photo_id as 'photo_id',
         signature as 'signature',
         stat_date as 'stat_date',
+        material_type as 'material_type',
         channel_type as 'channel_type',
         url as 'video_url'
         from ctop_kuaishou_video_get

+ 1 - 0
module-kuaishou/src/main/java/cn/com/ctop/kuaishou/modules/batch/mapper/xml/KuaishouVideoRelateCreativesMapper.xml

@@ -79,6 +79,7 @@
         t2.signature,
         t1.charge,
         t2.channel_type,
+        t2.material_type as 'material_type',
         t2.url as 'video_url'
         FROM
         (