|
@@ -183,6 +183,12 @@ func (*friendService) AgreeAddFriend(ctx context.Context, userId, friendId int64 |
|
|
Nickname: resp.User.Nickname, |
|
|
Nickname: resp.User.Nickname, |
|
|
AvatarUrl: resp.User.AvatarUrl, |
|
|
AvatarUrl: resp.User.AvatarUrl, |
|
|
}, true) |
|
|
}, true) |
|
|
|
|
|
utils.FilePutContents("push_AgreeAddFriend", utils.SerializeStr(map[string]interface{}{ |
|
|
|
|
|
"friend_id": userId, |
|
|
|
|
|
"friend_nick_name": resp.User.Nickname, |
|
|
|
|
|
"friend_avatar_url": resp.User.AvatarUrl, |
|
|
|
|
|
"err": err, |
|
|
|
|
|
})) |
|
|
if err != nil { |
|
|
if err != nil { |
|
|
return err |
|
|
return err |
|
|
} |
|
|
} |
|
|