|
@@ -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);
|