|
@@ -66,15 +66,14 @@ public class ImNetworkRoomController extends BaseController {
|
|
|
public void statusSync(@RequestBody String body) throws Exception {
|
|
|
log.info("statusSync body: {}",body);
|
|
|
ImChannelStateNotify notify = JSONObject.parseObject(body, ImChannelStateNotify.class);
|
|
|
- log.info("statusSyncParam: {}",JSONObject.toJSON(notify));
|
|
|
switch (notify.getEvent()) {
|
|
|
case 11:
|
|
|
//成员加入
|
|
|
- imNetworkRoomService.joinRoomSuccess(notify.getChannelId(),Long.parseLong(notify.getUserId()));
|
|
|
+ imNetworkRoomService.joinRoomSuccess(notify.getRoomId(),Long.parseLong(notify.getUserId()));
|
|
|
break;
|
|
|
case 12:
|
|
|
//成员退出
|
|
|
- imNetworkRoomService.leaveRoomSuccess(notify.getChannelId(),Long.parseLong(notify.getUserId()));
|
|
|
+ imNetworkRoomService.leaveRoomSuccess(notify.getRoomId(),Long.parseLong(notify.getUserId()));
|
|
|
break;
|
|
|
}
|
|
|
}
|