mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-14 20:40:49 +08:00
fix call getDownLoadUrl()
This commit is contained in:
@@ -114,7 +114,7 @@ class TorrentRepository extends BaseRepository
|
|||||||
},
|
},
|
||||||
];
|
];
|
||||||
$result = Torrent::query()->with($with)->withCount(['peers', 'thank_users', 'reward_logs'])->visible()->findOrFail($id);
|
$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;
|
return $result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user