瀏覽代碼

开屏图片创建

yangzian 3 年之前
父節點
當前提交
934ee39d18

+ 3 - 3
jeecg-boot-bytedance/src/main/java/org/jeecg/modules/bytedance/advertise/mapper/xml/ByteDanceVideoInfoMapper.xml

@@ -172,7 +172,7 @@
             and image.type = '1'
             and image.type = '1'
         </if>
         </if>
         <if test="imageMode == '2'.toString()">
         <if test="imageMode == '2'.toString()">
-            and (image.type = '2' or image.type = '3')
+            and image.type = '2'
         </if>
         </if>
         <if test="imageMode == '3'.toString()">
         <if test="imageMode == '3'.toString()">
             and image.type = '3'
             and image.type = '3'
@@ -212,7 +212,7 @@
             and a.type = '1'
             and a.type = '1'
         </if>
         </if>
         <if test="imageMode == '2'.toString()">
         <if test="imageMode == '2'.toString()">
-            and (a.type = '2' or a.type = '3')
+            and a.type = '2'
         </if>
         </if>
         <if test="imageMode == '3'.toString()">
         <if test="imageMode == '3'.toString()">
             and a.type = '3'
             and a.type = '3'
@@ -254,7 +254,7 @@
             and a.type = '1'
             and a.type = '1'
         </if>
         </if>
         <if test="imageMode == '2'.toString()">
         <if test="imageMode == '2'.toString()">
-            and (a.type = '2' or a.type = '3')
+            and a.type = '2'
         </if>
         </if>
         <if test="imageMode == '3'.toString()">
         <if test="imageMode == '3'.toString()">
             and a.type = '3'
             and a.type = '3'

+ 11 - 3
jeecg-boot-bytedance/src/main/java/org/jeecg/modules/bytedance/advertise/service/impl/AiBytedanceAdvertiserStrategyServiceImpl.java

@@ -460,10 +460,18 @@ public class AiBytedanceAdvertiserStrategyServiceImpl extends ServiceImpl<AiByte
 
 
             }
             }
         }
         }
-
-        if(!Check.isNull(titleArray)){
-            creObj.put("title_materials",titleArray);
+        if (Check.isNull(titleArray)){
+            log.info("账户----{}-------暂无文案,请补充文案信息",strategy.getAccountId());
+            AiBytedanceAutocreateLog iBytedanceAutocreateLog = new AiBytedanceAutocreateLog(
+                    strategy.getAccountId(),
+                    "创意获取文案为空",
+                    40000,
+                    strategy.getAccountId()+"暂无文案,请补充文案信息",
+                    "创建创意=====> ,id:"+strategy.getId()+"strategy:"+strategy.getAccountId());
+            iBytedanceAutocreateLogService.save(iBytedanceAutocreateLog);
         }
         }
+        creObj.put("title_materials",titleArray);
+
         JSONArray imageMaterials = new JSONArray();
         JSONArray imageMaterials = new JSONArray();
         JSONObject object = new JSONObject();
         JSONObject object = new JSONObject();
         //类型
         //类型