|
|
@@ -124,8 +124,8 @@ func (*friendService) AddFriend(ctx context.Context, userId, friendId int64, rem |
|
|
|
|
|
|
|
if description == "社交人脉圈添加好友" { |
|
|
|
return FriendService.AgreeAddFriend(ctx, friendId, userId, description) |
|
|
|
} else if description == "抖省客服自动添加" { |
|
|
|
return FriendService.AgreeAddFriend(ctx, friendId, userId, "抖省客服自动添加") |
|
|
|
} else if description == "客服自动添加" { |
|
|
|
return FriendService.AgreeAddFriend(ctx, friendId, userId, "客服") |
|
|
|
} else { |
|
|
|
if respFriend.User.IsAutoAddedFriends == 1 { |
|
|
|
return FriendService.AgreeAddFriend(ctx, friendId, userId, "系统自动添加") |
|
|
@@ -185,7 +185,7 @@ func (*friendService) AgreeAddFriend(ctx context.Context, userId, friendId int64 |
|
|
|
}, true) |
|
|
|
|
|
|
|
utils.FilePutContents("push_AgreeAddFriend", utils.SerializeStr(map[string]interface{}{ |
|
|
|
"friend_id": userId, |
|
|
|
"friend_id": friendId, |
|
|
|
"friend_nick_name": resp.User.Nickname, |
|
|
|
"friend_avatar_url": resp.User.AvatarUrl, |
|
|
|
"err": err, |
|
|
|