DengBiao 1 anno fa
parent
commit
81e38544a5
1 ha cambiato i file con 7 aggiunte e 2 eliminazioni
  1. +7
    -2
      internal/logic/domain/friend/friend_service.go

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

@@ -119,8 +119,13 @@ func (*friendService) AddFriend(ctx context.Context, userId, friendId int64, rem
"is_auto_add_friends": isAutoAddFriends,
"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


Caricamento…
Annulla
Salva