cy il y a 2 ans
Parent
commit
7b97a0a0d0

+ 0 - 8
cooleshow-user/user-biz/src/main/java/com/yonge/cooleshow/biz/dal/service/impl/CourseScheduleServiceImpl.java

@@ -1876,14 +1876,6 @@ public class CourseScheduleServiceImpl extends ServiceImpl<CourseScheduleDao, Co
         Integer count = baseMapper.selectCount(Wrappers.<CourseSchedule>lambdaQuery().eq(CourseSchedule::getCourseGroupId, groupId));
         if (count == 0) {//组内课程为0,删除课程组
             courseGroupService.getDao().deleteById(groupId);
-
-            //解散群聊
-            try {
-                imGroupService.dismiss(String.valueOf(groupId));
-            } catch (Exception e) {
-                log.error("琴房课程组id:{},关闭群聊失败:{}", groupId, e);
-                throw new BizException("关闭群聊失败");
-            }
         } else {
             courseGroupService.update(null, Wrappers.<CourseGroup>lambdaUpdate()
                     .eq(CourseGroup::getId, groupId)