Skip to content

Commit

Permalink
修正拼写错误
Browse files Browse the repository at this point in the history
  • Loading branch information
imhao183 committed Mar 15, 2021
1 parent 19bd5e8 commit d6d3eba
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions sdk/src/main/java/cn/wildfirechat/sdk/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -292,23 +292,23 @@ static void testUserRelation() throws Exception {
System.exit(-1);
}

IMResult<Void> result = RelationAdmin.sendFrienRequest("ff1", "ff2", "hello", true);
IMResult<Void> result = RelationAdmin.sendFriendRequest("ff1", "ff2", "hello", true);
if (result != null && result.getErrorCode() == ErrorCode.ERROR_CODE_SUCCESS) {
System.out.println("send friend request success");
} else {
System.out.println("failure");
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 {
System.out.println("failure");
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 {
Expand Down
2 changes: 1 addition & 1 deletion sdk/src/main/java/cn/wildfirechat/sdk/RelationAdmin.java
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public static IMResult<OutputGetAlias> getFriendAlias(String operator, String ta
return AdminHttpUtils.httpJsonPost(path, input, OutputGetAlias.class);
}

public static IMResult<Void> sendFrienRequest(String userId, String targetId, String reason, boolean force) throws Exception {
public static IMResult<Void> sendFriendRequest(String userId, String targetId, String reason, boolean force) throws Exception {
String path = APIPath.Friend_Send_Request;
InputAddFriendRequest input = new InputAddFriendRequest();
input.setUserId(userId);
Expand Down

0 comments on commit d6d3eba

Please sign in to comment.