|
@@ -272,7 +272,7 @@ public class AiKuaishouAccountAutoDoServiceImpl implements IAiKuaishouAccountAut
|
|
|
KuaishouChannel channel = null;
|
|
|
//0不使用,1使用
|
|
|
Integer useChannel = Check.isNull(strategy.getUseChannel()) ? 0 : strategy.getUseChannel();
|
|
|
- if (useChannel == 1) {
|
|
|
+ if (useChannel == 1 && !"group".equals(level)) {
|
|
|
/*获取渠道号*/
|
|
|
channel = getChannel(level, accountId, appName);
|
|
|
if (Check.isNull(channel)) {
|
|
@@ -1513,18 +1513,16 @@ public class AiKuaishouAccountAutoDoServiceImpl implements IAiKuaishouAccountAut
|
|
|
KuaishouChannel channel = null;
|
|
|
try {
|
|
|
channel = null;
|
|
|
- if (("account".equals(level) || "plan".equals(level))) {
|
|
|
- Result<Object> result = channelService.queryChannel(accountId, level, appName, null);
|
|
|
- if (result.getCode() == 200) {
|
|
|
- channel = (KuaishouChannel) result.getResult();
|
|
|
- if (Check.isNull(channel)) {
|
|
|
- log.error("****** 账户({})未获取到渠道号,{}", accountId, result.getMessage());
|
|
|
- } else {
|
|
|
- log.info("------获取渠道号:{}", channel.getChannelCode());
|
|
|
- }
|
|
|
+ Result<Object> result = channelService.queryChannel(accountId, level, appName, null);
|
|
|
+ if (result.getCode() == 200) {
|
|
|
+ channel = (KuaishouChannel) result.getResult();
|
|
|
+ if (Check.isNull(channel)) {
|
|
|
+ log.error("****** 账户({})未获取到渠道号,{}", accountId, result.getMessage());
|
|
|
} else {
|
|
|
- log.error("****** 账户({})根据应用名:{},未查询渠道号!{}", accountId, appName, result.getMessage());
|
|
|
+ log.info("------获取渠道号:{}", channel.getChannelCode());
|
|
|
}
|
|
|
+ } else {
|
|
|
+ log.error("****** 账户({})根据应用名:{},未查询渠道号!{}", accountId, appName, result.getMessage());
|
|
|
}
|
|
|
} catch (Exception e) {
|
|
|
e.printStackTrace();
|