Explorar o código

Merge branch 'master' into V1.1.5

yumeng %!s(int64=4) %!d(string=hai) anos
pai
achega
ffe92aeca7

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

@@ -113,6 +113,11 @@ public class AiKuaishouAdvertiserStrategyController {
         if (aiKuaishouAdvertiserStrategyEntity == null) {
         if (aiKuaishouAdvertiserStrategyEntity == null) {
             result.error500("未找到对应实体");
             result.error500("未找到对应实体");
         } else {
         } else {
+            Integer singleAppId = aiKuaishouAdvertiserStrategy.getSingleAppid();
+            if (null != singleAppId && singleAppId == 1) {
+                Integer appId = Integer.parseInt(JSONArray.parseArray(aiKuaishouAdvertiserStrategy.getAppIdArray()).getString(0));
+                aiKuaishouAdvertiserStrategy.setAppId(appId);
+            }
             boolean ok = aiKuaishouAdvertiserStrategyService.updateById(aiKuaishouAdvertiserStrategy);
             boolean ok = aiKuaishouAdvertiserStrategyService.updateById(aiKuaishouAdvertiserStrategy);
             if (ok) {
             if (ok) {
                 result.success("修改成功!");
                 result.success("修改成功!");