server api获取被封禁用户时,过滤掉正常用户

This commit is contained in:
heavyrian2012
2024-07-09 16:06:10 +08:00
parent 100a1bd44c
commit 6ef8b78452
@@ -2858,8 +2858,10 @@ public class MemoryMessagesStore implements IMessagesStore {
IMap<String, Integer> mUserMap = hzInstance.getMap(USER_STATUS); IMap<String, Integer> mUserMap = hzInstance.getMap(USER_STATUS);
ArrayList<InputOutputUserBlockStatus> out = new ArrayList<>(); ArrayList<InputOutputUserBlockStatus> out = new ArrayList<>();
for (Map.Entry<String, Integer> entry : mUserMap.entrySet()) { for (Map.Entry<String, Integer> entry : mUserMap.entrySet()) {
if(entry.getValue() > 0) {
out.add(new InputOutputUserBlockStatus(entry.getKey(), entry.getValue())); out.add(new InputOutputUserBlockStatus(entry.getKey(), entry.getValue()));
} }
}
return out; return out;
} }