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);