diff --git a/app/Service/ContactsService.php b/app/Service/ContactsService.php index ed9a76e..e51073c 100644 --- a/app/Service/ContactsService.php +++ b/app/Service/ContactsService.php @@ -27,29 +27,6 @@ class ContactsService extends BaseService { use PagingTrait; - /** - * 获取联系人列表 - * - * @param int $user_id 用户ID - * @return array - */ - public function getContacts(int $user_id): array - { - - - $prefix = config('databases.default.prefix'); - $sql = << $friend_id) { - [$user_id, $friend_id] = [$friend_id, $user_id]; - $data['user2_remark'] = $remarks; - } else { - $data['user1_remark'] = $remarks; - } - - return (bool)UsersFriend::where('user1', $user_id)->where('user2', $friend_id)->update($data); + return (bool)UsersFriend::where('user_id', $user_id)->where('friend_id', $friend_id)->update(['remark' => $remark]); } /**