zouxuan %!s(int64=5) %!d(string=hai) anos
pai
achega
1994195cb5

+ 0 - 1
edu-im/edu-im-server/src/main/java/com/keao/edu/im/controller/RoomController.java

@@ -63,7 +63,6 @@ public class RoomController{
 
     @RequestMapping(value = "/statusSync")
     public Object statusSync(@RequestBody String body) throws Exception {
-        log.info("statusSyncParam  body: {}",body);
         ChannelStateNotify notify = JSONObject.parseObject(body, ChannelStateNotify.class);
         log.info("statusSyncParam: {}",JSONObject.toJSON(notify));
         roomService.statusSync(notify);

+ 8 - 5
edu-im/edu-im-server/src/main/java/com/keao/edu/im/pojo/ChannelStateNotify.java

@@ -6,7 +6,7 @@ import java.util.List;
 public class ChannelStateNotify {
 
 	private String appKey;
-	private String channelId;
+	private String roomId;
 	private String sessionId;
 	private int event;
 	private String userId;
@@ -20,12 +20,15 @@ public class ChannelStateNotify {
 	public void setAppKey(String appKey) {
 		this.appKey = appKey;
 	}
-	public String getChannelId() {
-		return channelId;
+
+	public String getRoomId() {
+		return roomId;
 	}
-	public void setChannelId(String channelId) {
-		this.channelId = channelId;
+
+	public void setRoomId(String roomId) {
+		this.roomId = roomId;
 	}
+
 	public String getSessionId() {
 		return sessionId;
 	}

+ 1 - 1
edu-im/edu-im-server/src/main/java/com/keao/edu/im/service/Impl/RoomServiceImpl.java

@@ -1218,7 +1218,7 @@ public class RoomServiceImpl implements RoomService {
     @Override
     @Transactional(rollbackFor = Exception.class, isolation = Isolation.SERIALIZABLE)
     public boolean statusSync(ChannelStateNotify notify) throws Exception {
-        String roomId = notify.getChannelId();
+        String roomId = notify.getRoomId();
         String userId = notify.getUserId();
 
         RoomMember roomMember = roomMemberDao.findByRidAndUid(roomId, userId);