From 2454067fc304ff1d76eb1978faec3a9b654d0f8a Mon Sep 17 00:00:00 2001 From: heavyrain2012 Date: Tue, 13 Jul 2021 10:10:43 +0800 Subject: [PATCH] =?UTF-8?q?general=20admin=E4=B8=A4=E4=B8=AA=E7=94=A8?= =?UTF-8?q?=E6=88=B7=E8=AE=BE=E7=BD=AE=E7=9A=84=E6=8E=A5=E5=8F=A3=E6=94=B9?= =?UTF-8?q?=E4=B8=BApublic?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sdk/src/main/java/cn/wildfirechat/sdk/GeneralAdmin.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/sdk/src/main/java/cn/wildfirechat/sdk/GeneralAdmin.java b/sdk/src/main/java/cn/wildfirechat/sdk/GeneralAdmin.java index 047d44d0..52cbe89d 100644 --- a/sdk/src/main/java/cn/wildfirechat/sdk/GeneralAdmin.java +++ b/sdk/src/main/java/cn/wildfirechat/sdk/GeneralAdmin.java @@ -43,9 +43,8 @@ public class GeneralAdmin { out.result = result.result != null && "1".equals(result.result.getValue()); return out; } - - - private static IMResult getUserSetting(String userId, int scope, String key) throws Exception { + + public static IMResult getUserSetting(String userId, int scope, String key) throws Exception { String path = APIPath.User_Get_Setting; UserSettingPojo pojo = new UserSettingPojo(); pojo.setUserId(userId); @@ -54,7 +53,7 @@ public class GeneralAdmin { return AdminHttpUtils.httpJsonPost(path, pojo, UserSettingPojo.class); } - private static IMResult setUserSetting(String userId, int scope, String key, String value) throws Exception { + public static IMResult setUserSetting(String userId, int scope, String key, String value) throws Exception { String path = APIPath.User_Put_Setting; UserSettingPojo pojo = new UserSettingPojo(); pojo.setUserId(userId);