Browse Source

update

master
DengBiao 1 year ago
parent
commit
5f8596b029
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      internal/logic/domain/friend/friend_service.go

+ 2
- 0
internal/logic/domain/friend/friend_service.go View File

@@ -124,6 +124,8 @@ func (*friendService) AddFriend(ctx context.Context, userId, friendId int64, rem


if description == "社交人脉圈添加好友" { if description == "社交人脉圈添加好友" {
return FriendService.AgreeAddFriend(ctx, friendId, userId, description) return FriendService.AgreeAddFriend(ctx, friendId, userId, description)
} else if description == "抖省客服自动添加" {
return FriendService.AgreeAddFriend(ctx, friendId, userId, "抖省客服自动添加")
} else { } else {
if respFriend.User.IsAutoAddedFriends == 1 { if respFriend.User.IsAutoAddedFriends == 1 {
return FriendService.AgreeAddFriend(ctx, friendId, userId, "系统自动添加") return FriendService.AgreeAddFriend(ctx, friendId, userId, "系统自动添加")


Loading…
Cancel
Save