|
|
@@ -142,6 +142,10 @@ func (*friendService) AgreeAddFriend(ctx context.Context, userId, friendId int64 |
|
|
|
return err |
|
|
|
} |
|
|
|
if friend == nil { |
|
|
|
utils.FilePutContents("AgreeAddFriend", utils.SerializeStr(map[string]interface{}{ |
|
|
|
"userId": userId, |
|
|
|
"friendId": friendId, |
|
|
|
})) |
|
|
|
return gerrors.ErrBadRequest |
|
|
|
} |
|
|
|
if friend.Status == FriendStatusAgree { |
|
|
|