Browse Source

update

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

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

@@ -119,8 +119,13 @@ func (*friendService) AddFriend(ctx context.Context, userId, friendId int64, rem
"is_auto_add_friends": isAutoAddFriends, "is_auto_add_friends": isAutoAddFriends,
"user": resp.User, "user": resp.User,
})) }))
if respFriend.User.IsAutoAddedFriends == 1 {
return FriendService.AgreeAddFriend(ctx, friendId, userId, "系统自动添加")

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


Loading…
Cancel
Save