From e8e3d91dbc4bb67d6fc67e85f9606db51c538068 Mon Sep 17 00:00:00 2001 From: heavyrain2012 Date: Fri, 26 Aug 2022 19:18:16 +0800 Subject: [PATCH] update --- .../java/cn/wildfirechat/sdk/GeneralAdmin.java | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/sdk/src/main/java/cn/wildfirechat/sdk/GeneralAdmin.java b/sdk/src/main/java/cn/wildfirechat/sdk/GeneralAdmin.java index 6141f6eb..054b9516 100644 --- a/sdk/src/main/java/cn/wildfirechat/sdk/GeneralAdmin.java +++ b/sdk/src/main/java/cn/wildfirechat/sdk/GeneralAdmin.java @@ -45,18 +45,18 @@ public class GeneralAdmin { return AdminHttpUtils.httpJsonPost(path, input, Void.class); } - public static IMResult unsubscribeChannel(String channelId, String userId) throws Exception { - String path = APIPath.Check_User_Subscribe_Channel; - InputSubscribeChannel input = new InputSubscribeChannel(channelId, userId, 0); - return AdminHttpUtils.httpJsonPost(path, input, OutputBooleanValue.class); - } - - public static IMResult isUserSubscribedChannel(String userId, String channelId) throws Exception { + public static IMResult unsubscribeChannel(String channelId, String userId) throws Exception { String path = APIPath.Subscribe_Channel; InputSubscribeChannel input = new InputSubscribeChannel(channelId, userId, 0); return AdminHttpUtils.httpJsonPost(path, input, Void.class); } + public static IMResult isUserSubscribedChannel(String userId, String channelId) throws Exception { + String path = APIPath.Check_User_Subscribe_Channel; + InputSubscribeChannel input = new InputSubscribeChannel(channelId, userId, 0); + return AdminHttpUtils.httpJsonPost(path, input, OutputBooleanValue.class); + } + //以下仅专业版支持 public static IMResult setConversationTop(String userId, int conversationType, String target, int line, boolean isTop) throws Exception { String key = conversationType + "-" + line + "-" + target;