fix call getDownLoadUrl()

This commit is contained in:
xiaomlove
2023-06-11 15:27:53 +08:00
parent 3b4bf90b53
commit bce1e1ea73

View File

@@ -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;
}