|
@@ -322,7 +322,11 @@ public class ImNetworkRoomServiceImpl extends ServiceImpl<ImNetworkRoomDao, ImNe
|
|
|
@Override
|
|
|
@Transactional(rollbackFor = Exception.class)
|
|
|
public void sendImPlayMidiMessage(ImNetworkCustomMessage customMessage) throws Exception {
|
|
|
- customMessage.setCurrentUserId(sysUserService.getUserId());
|
|
|
+ RoleEnum roleEnum = RoleEnum.RoleTeacher;
|
|
|
+ if(ClientEnum.STUDENT == customMessage.getClientType()) {
|
|
|
+ roleEnum = RoleEnum.RoleStudent;
|
|
|
+ }
|
|
|
+ customMessage.setCurrentUserId(imGroupService.getImUserId(sysUserService.getUserId(),roleEnum));
|
|
|
CourseSchedule courseSchedule = courseScheduleService.getById(customMessage.getRoomId());
|
|
|
customMessage.setServiceProvider(courseSchedule.getServiceProvider());
|
|
|
//发送节拍器消息
|