ソースを参照

添加名称通配符问题

syh 4 年 前
コミット
a5a10f7e47

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

@@ -1019,12 +1019,13 @@ public class AiKuaishouCreateCreativeServiceImpl implements IAiKuaishouCreateCre
         }
         if(!wildcard.contains("{{自定义}}")){
             wildcard = wildcard+"{{自定义}}";
-            String targetName = KuaishouCreativeMatTypeEnum.getNameByType(strategy.getUnitType().toString()+createType.toString());
-            if(null!=appInfo){
-                targetName = appInfo.getAppVersion()+"-"+targetName;
-            }
-            wildcard = wildcard.replace("{{自定义}}",targetName);
         }
+        String targetName = KuaishouCreativeMatTypeEnum.getNameByType(strategy.getUnitType().toString()+createType.toString());
+        if(null!=appInfo){
+            targetName = appInfo.getAppVersion()+"-"+targetName;
+        }
+        wildcard = wildcard.replace("{{自定义}}",targetName);
+
         if(null!=timestamp&&!"".equals(timestamp.trim())){
             wildcard = wildcard+"-"+timestamp;
         }