From 1d309816ba86428fd4f0262c6dd809b1ab9921b5 Mon Sep 17 00:00:00 2001 From: "heavyrain.lee" Date: Thu, 25 Apr 2019 15:16:20 +0800 Subject: [PATCH] fix get chatroom error --- .../loServer/action/admin/GetChatroomInfoAction.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/broker/src/main/java/com/xiaoleilu/loServer/action/admin/GetChatroomInfoAction.java b/broker/src/main/java/com/xiaoleilu/loServer/action/admin/GetChatroomInfoAction.java index f2d232a6..014d2a30 100755 --- a/broker/src/main/java/com/xiaoleilu/loServer/action/admin/GetChatroomInfoAction.java +++ b/broker/src/main/java/com/xiaoleilu/loServer/action/admin/GetChatroomInfoAction.java @@ -40,10 +40,10 @@ public class GetChatroomInfoAction extends AdminAction { WFCMessage.ChatroomInfo info = messagesStore.getChatroomInfo(chatroomid); RestResult result; - if (info == null) { + if (info != null) { result = RestResult.ok(new OutputGetChatroomInfo(chatroomid, messagesStore.getChatroomMemberCount(chatroomid), info)); } else { - result = RestResult.resultOf(ErrorCode.ERROR_CODE_SUCCESS); + result = RestResult.resultOf(ErrorCode.ERROR_CODE_NOT_EXIST); } response.setStatus(HttpResponseStatus.OK);