|
|
@@ -563,12 +563,12 @@ public class FsUserCourseVideoServiceImpl implements IFsUserCourseVideoService
|
|
|
FsCourseLink courseLink = courseLinkMapper.selectFsCourseLinkByLink(param.getLink());
|
|
|
String msg = "<div style=\"color: red;margin-bottom: 15px;font-weight: bold;\">本课程为群会员独享<br>请长按二维码</div>\n" +
|
|
|
"\t\t\t\t\t<div style=\"color: #999;font-size: 14px;font-weight: bold;\">添加伴学助手免费领取会员权限</div>";
|
|
|
- QwGroupChat qwGroupChat = qwGroupChatMapper.selectQwGroupChatByChatId(courseLink.getChatId());
|
|
|
+ QwGroupChat qwGroupChat = qwGroupChatMapper.selectQwGroupChatByChatId(param.getChatId());
|
|
|
if(qwGroupChat == null){
|
|
|
return R.error("群参数异常");
|
|
|
}
|
|
|
SopUserLogsInfo sopUserLogsInfo = new SopUserLogsInfo();
|
|
|
- sopUserLogsInfo.setChatId(courseLink.getChatId());
|
|
|
+ sopUserLogsInfo.setChatId(param.getChatId());
|
|
|
List<QwGroupChatUser> qwGroupChatUsers = qwGroupChatUserMapper.selectByChatId(sopUserLogsInfo);
|
|
|
if(qwGroupChatUsers == null || qwGroupChatUsers.isEmpty()){
|
|
|
return R.error("群参数异常");
|
|
|
@@ -583,7 +583,7 @@ public class FsUserCourseVideoServiceImpl implements IFsUserCourseVideoService
|
|
|
return addCustomerService(param.getQwUserId(),msg);
|
|
|
}
|
|
|
if(qwGroupChatUsers.stream().noneMatch(e -> e.getUserId().equals(qwExternalContact.getExternalUserId()))){
|
|
|
- log.error("客户不在群:{},里面:{}", qwGroupChat.getChatId(), qwExternalContact.getExternalUserId());
|
|
|
+ log.error("客户不在群:{},里面:{}", param.getChatId(), qwExternalContact.getExternalUserId());
|
|
|
return addCustomerService(param.getQwUserId(),msg);
|
|
|
}
|
|
|
Long qwExternalId = qwExternalContact.getId();
|