|
@@ -58,9 +58,9 @@ public class RoomController{
|
|
|
public Object statusSync(@RequestBody String body) throws Exception {
|
|
|
ChannelStateNotify notify = JSONObject.parseObject(body, ChannelStateNotify.class);
|
|
|
log.info("statusSyncParam: {}",JSONObject.toJSON(notify));
|
|
|
- boolean result = false;
|
|
|
+// boolean result = false;
|
|
|
if(notify.getEvent() == 12 || notify.getEvent() == 3){
|
|
|
- result = roomService.statusSync(notify.getChannelId(), notify.getUserId());
|
|
|
+// result = roomService.statusSync(notify.getChannelId(), notify.getUserId());
|
|
|
}else if(notify.getEvent() == 11){
|
|
|
// Teacher teacher = teacherDao.get(Integer.parseInt(notify.getUserId()));
|
|
|
// Long roomId = Long.parseLong(notify.getChannelId().substring(1));
|
|
@@ -71,7 +71,8 @@ public class RoomController{
|
|
|
// roomService.joinRoom(teacher.getUsername(),roomId.toString(),false,false);
|
|
|
// }
|
|
|
}
|
|
|
- return new BaseResponse<>(result);
|
|
|
+ roomService.onChannelNotify(notify);
|
|
|
+ return new BaseResponse<>();
|
|
|
}
|
|
|
|
|
|
@RequestMapping(value = "/downgrade", method = RequestMethod.POST)
|