improve claim settle

This commit is contained in:
xiaomlove
2022-05-06 15:50:26 +08:00
parent c23cc1b441
commit f64834b594
18 changed files with 124 additions and 69 deletions

View File

@@ -37,6 +37,11 @@ class Claim extends NexusModel
return $this->belongsTo(Snatch::class, 'snatched_id');
}
public static function getConfigIsEnabled(): bool
{
return Setting::get('torrent.claim_enabled', 'no') == 'yes';
}
public static function getConfigTorrentTTL()
{
return Setting::get('torrent.claim_torrent_ttl', self::TORRENT_TTL);