From d6d3eba8e6ff779db96970d5bc5f169dce8bba05 Mon Sep 17 00:00:00 2001 From: imhao183 Date: Mon, 15 Mar 2021 12:22:09 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E6=8B=BC=E5=86=99=E9=94=99?= =?UTF-8?q?=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sdk/src/main/java/cn/wildfirechat/sdk/Main.java | 6 +++--- sdk/src/main/java/cn/wildfirechat/sdk/RelationAdmin.java | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/sdk/src/main/java/cn/wildfirechat/sdk/Main.java b/sdk/src/main/java/cn/wildfirechat/sdk/Main.java index 8ee00154f..73eb0b68f 100644 --- a/sdk/src/main/java/cn/wildfirechat/sdk/Main.java +++ b/sdk/src/main/java/cn/wildfirechat/sdk/Main.java @@ -292,7 +292,7 @@ static void testUserRelation() throws Exception { System.exit(-1); } - IMResult result = RelationAdmin.sendFrienRequest("ff1", "ff2", "hello", true); + IMResult result = RelationAdmin.sendFriendRequest("ff1", "ff2", "hello", true); if (result != null && result.getErrorCode() == ErrorCode.ERROR_CODE_SUCCESS) { System.out.println("send friend request success"); } else { @@ -300,7 +300,7 @@ static void testUserRelation() throws Exception { System.exit(-1); } - result = RelationAdmin.sendFrienRequest("ff1", "ff2", "hello2", false); + result = RelationAdmin.sendFriendRequest("ff1", "ff2", "hello2", false); if (result != null && result.getErrorCode() != ErrorCode.ERROR_CODE_SUCCESS) { System.out.println("success"); } else { @@ -308,7 +308,7 @@ static void testUserRelation() throws Exception { System.exit(-1); } - result = RelationAdmin.sendFrienRequest("ff1", "ff2", "hello3", true); + result = RelationAdmin.sendFriendRequest("ff1", "ff2", "hello3", true); if (result != null && result.getErrorCode() == ErrorCode.ERROR_CODE_SUCCESS) { System.out.println("success"); } else { diff --git a/sdk/src/main/java/cn/wildfirechat/sdk/RelationAdmin.java b/sdk/src/main/java/cn/wildfirechat/sdk/RelationAdmin.java index d304b34c1..1530d8552 100644 --- a/sdk/src/main/java/cn/wildfirechat/sdk/RelationAdmin.java +++ b/sdk/src/main/java/cn/wildfirechat/sdk/RelationAdmin.java @@ -56,7 +56,7 @@ public static IMResult getFriendAlias(String operator, String ta return AdminHttpUtils.httpJsonPost(path, input, OutputGetAlias.class); } - public static IMResult sendFrienRequest(String userId, String targetId, String reason, boolean force) throws Exception { + public static IMResult sendFriendRequest(String userId, String targetId, String reason, boolean force) throws Exception { String path = APIPath.Friend_Send_Request; InputAddFriendRequest input = new InputAddFriendRequest(); input.setUserId(userId);