zouxuan 5 년 전
부모
커밋
ee8fd203df
2개의 변경된 파일2개의 추가작업 그리고 3개의 파일을 삭제
  1. 2 2
      mec-im/src/main/java/com/ym/controller/RoomController.java
  2. 0 1
      mec-im/src/main/java/com/ym/service/Impl/RoomServiceImpl.java

+ 2 - 2
mec-im/src/main/java/com/ym/controller/RoomController.java

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

+ 0 - 1
mec-im/src/main/java/com/ym/service/Impl/RoomServiceImpl.java

@@ -236,7 +236,6 @@ public class RoomServiceImpl implements RoomService {
         roomMemberDao.save(roomMember);
     }
 
-    @Transactional(rollbackFor = Exception.class)
     @Override
     public Boolean leaveRoom(String roomId) throws Exception {
         SysUser user = sysUserFeignService.queryUserInfo();