|
@@ -34,11 +34,11 @@ public class RoomController{
|
|
|
return new BaseResponse<>(result);
|
|
|
}
|
|
|
|
|
|
- @RequestMapping(value = "/statusSync", method = RequestMethod.POST)
|
|
|
+ @RequestMapping(value = "/statusSync")
|
|
|
public Object statusSync(@RequestBody String body) throws Exception {
|
|
|
ChannelStateNotify notify = JSONObject.parseObject(body, ChannelStateNotify.class);
|
|
|
boolean result = false;
|
|
|
- if(notify.getEvent() == 12){
|
|
|
+ if(notify.getEvent() == 12 || notify.getEvent() == 3){
|
|
|
result = roomService.statusSync(notify.getChannelId(), notify.getUserId());
|
|
|
}
|
|
|
return new BaseResponse<>(result);
|