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