Commit 41c75477 by 裴大威

fix 回退获取应用channelId

parent 78600a8c
...@@ -495,14 +495,7 @@ public class BookKeywordBizImpl implements BookKeywordBiz { ...@@ -495,14 +495,7 @@ public class BookKeywordBizImpl implements BookKeywordBiz {
Long qrcodeId = classifyToQrcodeMap.get(dto.getClassifyId()); Long qrcodeId = classifyToQrcodeMap.get(dto.getClassifyId());
GroupQrcodeBaseInfoVO qrcodeInfo = groupQrcodeDao.getBaseById(qrcodeId); GroupQrcodeBaseInfoVO qrcodeInfo = groupQrcodeDao.getBaseById(qrcodeId);
if (isApp || isLink) { if (isApp || isLink) {
Long channelId = dto.getChannelId(); AccountSettingDto accountSettingDto = qrcodeSceneConsr.getWechatInfo(dto.getChannelId());
if (isApp) {
final AppDto app = appConsr.getBaseById(replyKeywordDTO.getServeId());
if (null != app) {
channelId = app.getChannelId();
}
}
AccountSettingDto accountSettingDto = qrcodeSceneConsr.getWechatInfo(channelId);
String linkUrl = SendWeixinRequestTools.splitUrlNew(accountSettingDto, replyKeywordDTO.getLinkUrl(), dto.getBookGroupId(), dto.getClassifyId(), qrcodeId); String linkUrl = SendWeixinRequestTools.splitUrlNew(accountSettingDto, replyKeywordDTO.getLinkUrl(), dto.getBookGroupId(), dto.getClassifyId(), qrcodeId);
replyKeywordDTO.setLinkUrl(linkUrl); replyKeywordDTO.setLinkUrl(linkUrl);
if (!StringUtil.isEmpty(linkUrl)) { if (!StringUtil.isEmpty(linkUrl)) {
...@@ -596,15 +589,7 @@ public class BookKeywordBizImpl implements BookKeywordBiz { ...@@ -596,15 +589,7 @@ public class BookKeywordBizImpl implements BookKeywordBiz {
final boolean isApp = ReplyTypeEnum.APP.value.equals(replyKeywordDTO.getReplyType()); final boolean isApp = ReplyTypeEnum.APP.value.equals(replyKeywordDTO.getReplyType());
final boolean isLink = ReplyTypeEnum.LINK.value.equals(replyKeywordDTO.getReplyType()); final boolean isLink = ReplyTypeEnum.LINK.value.equals(replyKeywordDTO.getReplyType());
if (isApp || isLink) { if (isApp || isLink) {
Long channelId = classifyQrcodeInfo.getChannelId(); AccountSettingDto accountSettingDto = qrcodeSceneConsr.getWechatInfo(classifyQrcodeInfo.getChannelId());
// 如果是app则取app的channelId
if (isApp) {
final AppDto app = appConsr.getBaseById(replyKeywordDTO.getServeId());
if (null != app) {
channelId = app.getChannelId();
}
}
AccountSettingDto accountSettingDto = qrcodeSceneConsr.getWechatInfo(channelId);
String linkUrl = SendWeixinRequestTools.splitUrlNew(accountSettingDto, replyKeywordDTO.getLinkUrl(), classifyQrcodeInfo.getBookGroupId(), classifyQrcodeInfo.getClassifyId(), classifyQrcodeInfo.getGroupQrcodeId()); String linkUrl = SendWeixinRequestTools.splitUrlNew(accountSettingDto, replyKeywordDTO.getLinkUrl(), classifyQrcodeInfo.getBookGroupId(), classifyQrcodeInfo.getClassifyId(), classifyQrcodeInfo.getGroupQrcodeId());
replyKeywordDTO.setLinkUrl(linkUrl); replyKeywordDTO.setLinkUrl(linkUrl);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment