Selaa lähdekoodia

Merge branch 'V2.0.1' into test

zhaoxian 3 vuotta sitten
vanhempi
commit
d77bd224f6

+ 3 - 3
jeecg-boot-module-system/src/main/java/cn/com/ctop/kuaishou/modules/ai/service/impl/AiKuaishouAccountAutoDoServiceImpl.java

@@ -1829,9 +1829,9 @@ public class AiKuaishouAccountAutoDoServiceImpl implements IAiKuaishouAccountAut
             }
             campaignId = (Long) campaignCreateResult.get("campaignId");
 
-//            if (!Check.isNull(channel)) {
-//                channelService.callBackUpdateChannelRel("plan", channel.getChannelCode(), token.getAccountId(), campaignId, null);
-//            }
+            if (!Check.isNull(channel)) {
+                channelService.callBackUpdateChannelRel("plan", channel.getChannelCode(), token.getAccountId(), campaignId, null);
+            }
             record.setCampaignId(campaignId);
             aiKuaishouCampaignLevelOperationRecordService.saveOrUpdate(record);
             Integer campaignStatus = strategy.getCampaignStatus();

+ 12 - 0
jeecg-boot-module-system/src/main/java/cn/com/ctop/kuaishou/modules/channel/service/impl/KuaishouChannelServiceImpl.java

@@ -511,6 +511,18 @@ public class KuaishouChannelServiceImpl extends ServiceImpl<KuaishouChannelMappe
                     updateApp(strategy, app, token);
                 }
             }
+        }else{
+            KuaiShouAppList appInfo = kuaiShouAppListService.getAppInfo(strategy.getAccountId(), strategy.getAppId());
+            KuaishouChannelAppInfo channelAppInfo = new KuaishouChannelAppInfo();
+            BeanUtils.copyProperties(appInfo, channelAppInfo);
+            channelAppInfo.setState(1);
+            channelAppInfo.setUrl((String) appInfo.getUrl());
+            channelAppInfo.setUseSdk(0);
+            channelAppInfo.setAppIconUrl((String) appInfo.getAppIconUrl());
+            channelAppInfo.setId(null);
+            channelAppInfo.setType("check");
+            channelAppInfo.setRemark("选择原有App");
+            channelAppInfoService.save(channelAppInfo);
         }
     }