From bce1e1ea739c07cf84ec00e79bca5a6faf9e87a2 Mon Sep 17 00:00:00 2001 From: xiaomlove Date: Sun, 11 Jun 2023 15:27:53 +0800 Subject: [PATCH] fix call getDownLoadUrl() --- app/Repositories/TorrentRepository.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Repositories/TorrentRepository.php b/app/Repositories/TorrentRepository.php index c63a6af9..6d5b3849 100644 --- a/app/Repositories/TorrentRepository.php +++ b/app/Repositories/TorrentRepository.php @@ -114,7 +114,7 @@ class TorrentRepository extends BaseRepository }, ]; $result = Torrent::query()->with($with)->withCount(['peers', 'thank_users', 'reward_logs'])->visible()->findOrFail($id); - $result->download_url = $this->getDownloadUrl($id, $user->toArray()); + $result->download_url = $this->getDownloadUrl($id, $user); return $result; }