Sfoglia il codice sorgente

添加动态词包支持

songyh 4 anni fa
parent
commit
de47b0e934

+ 1 - 0
jeecg-boot-bytedance/src/main/java/org/jeecg/modules/bytedance/advertise/entity/BytedanceVideoSlogenInfo.java

@@ -34,6 +34,7 @@ public class BytedanceVideoSlogenInfo {
 	private String updateBy;
 	/**status*/
 	private Integer status;
+	private String creativeWordIds;
 
 	public BytedanceVideoSlogenInfo(String videoCode, String slogan, String userId) {
 		this.videoCode = videoCode;

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

@@ -6,9 +6,7 @@ import com.alibaba.fastjson.JSONObject;
 import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
 import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
 import com.google.common.base.Joiner;
-import com.google.gson.JsonArray;
 import lombok.extern.slf4j.Slf4j;
-import org.apache.commons.lang.ArrayUtils;
 import org.jeecg.common.api.vo.Result;
 import org.jeecg.common.util.DateUtils;
 import org.jeecg.modules.bytedance.advertise.dockapi.MarketingService;
@@ -293,6 +291,13 @@ public class AiBytedanceAdvertiserStrategyServiceImpl extends ServiceImpl<AiByte
             slogenInfos.forEach(slogenInfo->{
                 JSONObject titleObject = new JSONObject();
                 titleObject.put("title",slogenInfo.getSlogan());
+                String creativeWordsIds = slogenInfo.getCreativeWordIds();
+                if(null!=creativeWordsIds&&!creativeWordsIds.trim().equals("")){
+                    JSONArray creativeWordsArray = JSON.parseArray(creativeWordsIds);
+                    if(null!=creativeWordsArray&&!creativeWordsArray.isEmpty()){
+                        titleObject.put("creative_word_ids",creativeWordsArray);
+                    }
+                }
                 titleArray.add(titleObject);
             });
         }