mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-03 14:10:57 +08:00
custom donation content
This commit is contained in:
@@ -25,7 +25,7 @@ class ClaimRepository extends BaseRepository
|
||||
public function store($uid, $torrentId)
|
||||
{
|
||||
$isEnabled = Claim::getConfigIsEnabled();
|
||||
if ($isEnabled) {
|
||||
if (!$isEnabled) {
|
||||
throw new \RuntimeException(nexus_trans("torrent.claim_disabled"));
|
||||
}
|
||||
$exists = Claim::query()->where('uid', $uid)->where('torrent_id', $torrentId)->exists();
|
||||
|
||||
Reference in New Issue
Block a user