|
@@ -61,8 +61,8 @@ public class RoomController{
|
|
|
@RequestMapping(value = "/leave", method = RequestMethod.POST)
|
|
|
public Object leaveRoom(@RequestBody ReqUserData data)
|
|
|
throws Exception {
|
|
|
- boolean result = roomService.leaveRoom(data.getRegistrationId(),data.getRoomId(),null);
|
|
|
- return new BaseResponse<>(result);
|
|
|
+// boolean result = roomService.leaveRoom(data.getRegistrationId(),data.getRoomId(),null);
|
|
|
+ return new BaseResponse<>(true);
|
|
|
}
|
|
|
|
|
|
@RequestMapping(value = "/statusSync")
|
|
@@ -161,6 +161,9 @@ public class RoomController{
|
|
|
@RequestMapping(value = "/device/sync", method = RequestMethod.POST)
|
|
|
public Object syncDeviceState(@RequestBody ReqDeviceControlData data)
|
|
|
throws Exception {
|
|
|
+ if (StringUtils.startsWith(data.getRoomId(),"S")){
|
|
|
+ return new BaseResponse<>();
|
|
|
+ }
|
|
|
boolean result;
|
|
|
if (data.getCameraOn() != null) {
|
|
|
result = roomService.syncDeviceState(data.getRoomId(), DeviceTypeEnum.Camera, data.getCameraOn());
|