Browse Source

网络教室问题处理

zouxuan 2 years ago
parent
commit
794dc02967
1 changed files with 2 additions and 0 deletions
  1. 2 0
      mec-im/src/main/java/com/ym/service/Impl/RoomServiceImpl.java

+ 2 - 0
mec-im/src/main/java/com/ym/service/Impl/RoomServiceImpl.java

@@ -324,6 +324,7 @@ public class RoomServiceImpl implements RoomService {
         String joinImGroupKey = "joinImGroup:" + roomId;
         Boolean aBoolean = redisTemplate.opsForValue().setIfAbsent(joinImGroupKey, roomId, 1l, TimeUnit.DAYS);
         if (aBoolean) {
+            log.info("joinImGroup: roomId = {}, userId = {}", roomId, actualTeacherId);
             List<CourseScheduleStudentPayment> payments = courseScheduleStudentPaymentDao.findByCourseSchedule(Long.parseLong(roomId.substring(1)));
             List<String> collect = payments.stream().map(e -> e.getUserId().toString()).collect(Collectors.toList());
             collect.add(actualTeacherId.toString());
@@ -332,6 +333,7 @@ public class RoomServiceImpl implements RoomService {
         }
     }
     private void dismissImGroup(String userId,String roomId) throws Exception {
+        log.info("dismissImGroup: roomId = {}, userId = {}", roomId, userId);
         String joinImGroupKey = "joinImGroup:" + roomId;
         redisTemplate.delete(joinImGroupKey);
         imHelper.dismiss(userId, roomId);