Kaynağa Gözat

修改账户配置信息编辑代码逻辑

syh 4 yıl önce
ebeveyn
işleme
f929f7df57

+ 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) {
             result.error500("未找到对应实体");
         } 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);
             if (ok) {
                 result.success("修改成功!");