Commit 52bd0556 by Shadow

fixed bug

parent c0f61f5c
...@@ -509,7 +509,7 @@ public class NormalChatAction { ...@@ -509,7 +509,7 @@ public class NormalChatAction {
*/ */
private boolean baned(ImConversationQueryVo conversation, String reqId, ImClient imClientSender, List<ImConversationMembers> membersList, Channel channel) { private boolean baned(ImConversationQueryVo conversation, String reqId, ImClient imClientSender, List<ImConversationMembers> membersList, Channel channel) {
// 会话是否被封禁 // 会话是否被封禁
String attributes = imClientSender.getAttributes(); String attributes = conversation.getAttributes();
if (StringUtils.isNotBlank(attributes)) { if (StringUtils.isNotBlank(attributes)) {
JSONObject jsonObject = JSONObject.parseObject(attributes); JSONObject jsonObject = JSONObject.parseObject(attributes);
if (jsonObject == null || jsonObject.isEmpty() || !jsonObject.containsKey("baned")) { if (jsonObject == null || jsonObject.isEmpty() || !jsonObject.containsKey("baned")) {
...@@ -520,7 +520,7 @@ public class NormalChatAction { ...@@ -520,7 +520,7 @@ public class NormalChatAction {
if (baned) { if (baned) {
// 响应发送方 // 响应发送方
WsResponse<HashMap<String, Long>> responseModel = new WsResponse<>(); WsResponse<HashMap<String, Long>> responseModel = new WsResponse<>();
ApiResult<Boolean> apiResult = ApiResult.result(ApiCode.IS_BE_MUTED); ApiResult<Boolean> apiResult = ApiResult.result(ApiCode.IS_BE_BANED);
responseModel.setCmd(WsResponseCmdEnum.RES.getCmdCode()); responseModel.setCmd(WsResponseCmdEnum.RES.getCmdCode());
responseModel.setCode(apiResult.getCode()); responseModel.setCode(apiResult.getCode());
responseModel.setMsg(apiResult.getMessage()); responseModel.setMsg(apiResult.getMessage());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment