yumeng преди 4 години
родител
ревизия
170be9b86b

+ 2 - 2
jeecg-boot-module-system/src/main/resources/application-dev.yml

@@ -1,5 +1,5 @@
 server:
-  port: 8805
+  port: 8080
   tomcat:
     max-swallow-size: -1
   servlet:
@@ -135,7 +135,7 @@ spring:
         connectionProperties: druid.stat.mergeSql\=true;druid.stat.slowSqlMillis\=5000
       datasource:
         master:
-          url: jdbc:mysql://139.186.27.96:4000/jiaoyang?characterEncoding=UTF-8&useUnicode=true&useSSL=false
+          url: jdbc:mysql://139.186.27.96:4000/jeecg-boot?characterEncoding=UTF-8&useUnicode=true&useSSL=false
           username: data
           password: hcst@2021
           driver-class-name: com.mysql.jdbc.Driver

+ 6 - 2
module-kuaishou/src/main/java/cn/com/ctop/kuaishou/modules/ai/service/impl/AiKuaishouCreateCreativeServiceImpl.java

@@ -96,10 +96,11 @@ public class AiKuaishouCreateCreativeServiceImpl implements IAiKuaishouCreateCre
         if (null != singleAppid && singleAppid == 0) {
             //多应用
             JSONArray appIdArray = JSONArray.parseArray(strategy.getAppIdArray());
-            String replaceString = KuaishouCreativeMatTypeEnum.getNameByType(strategy.getUnitType().toString() + createType.toString());
             if (strategy.getMultipleBids() == 0) { // 非多应用多出价
                 if (null != appIdArray && !appIdArray.isEmpty()) {
                     for (int i = 0; i < appIdArray.size(); i++) {
+                        String replaceString = KuaishouCreativeMatTypeEnum.getNameByType(strategy.getUnitType().toString() + createType.toString());
+
                         AiKuaiShouAppInfo appInfo = appInfoService.getByParams(strategy.getAccountId(), appIdArray.getLong(i));
                         if (null == appInfo) {
                             log.info("账户:{},appid({}) 数据不存在", accountId, appIdArray.getLong(i));
@@ -166,6 +167,7 @@ public class AiKuaishouCreateCreativeServiceImpl implements IAiKuaishouCreateCre
                     }
                 }
             } else if (strategy.getMultipleBids() == 1) { //  多应用多出价
+                String replaceString = KuaishouCreativeMatTypeEnum.getNameByType(strategy.getUnitType().toString() + createType.toString());
                 List<KuaiShouVideoGet> allVideos = getVideosByParams(strategy, startTime, endTime, null, createType, videoCnt);
                 if (Check.isNull(allVideos)) {
                     return videoCnt;
@@ -351,7 +353,6 @@ public class AiKuaishouCreateCreativeServiceImpl implements IAiKuaishouCreateCre
         String key = token.getAccountId() + "_ProgramCreative" + "_" + nowDate;
         JSONArray appIdArray = JSON.parseArray(strategy.getAppIdArray());
         if (null != singleAppid && singleAppid == 0) {
-            String replaceString = KuaishouCreativeMatTypeEnum.getNameByType(strategy.getUnitType().toString() + createType.toString());
             if (strategy.getMultipleBids() == 0) { //  非多应用多出价
                 //多应用
                 if (null != appIdArray && !appIdArray.isEmpty()) {
@@ -361,6 +362,8 @@ public class AiKuaishouCreateCreativeServiceImpl implements IAiKuaishouCreateCre
                             log.info("账户:{},appid({}) 数据不存在", accountId, appIdArray.getLong(i));
                             continue;
                         }
+                        String replaceString = KuaishouCreativeMatTypeEnum.getNameByType(strategy.getUnitType().toString() + createType.toString());
+
                         //判定是否通用监测链接
                         if (null != strategy.getGeneralTrack() && strategy.getGeneralTrack() == 0) {
                             strategy.setClickTrackUrl(appInfo.getTrackUrl());
@@ -427,6 +430,7 @@ public class AiKuaishouCreateCreativeServiceImpl implements IAiKuaishouCreateCre
                 if (Check.isNull(allVideos)) {
                     return;
                 }
+                String replaceString = KuaishouCreativeMatTypeEnum.getNameByType(strategy.getUnitType().toString() + createType.toString());
                 List<List<KuaiShouVideoGet>> splitVideos = Lists.partition(allVideos, 1);
                 for (int j = 1; j < splitVideos.size() + 1; j++) {
                     List<KuaiShouVideoGet> kuaiShouVideoGets = splitVideos.get(j);