mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-16 14:00:56 +08:00
recover ptGen
This commit is contained in:
@@ -120,6 +120,11 @@ class Setting extends NexusModel
|
||||
return self::get("main.defaultlang");
|
||||
}
|
||||
|
||||
public static function getIsPTGenEnabled(): bool
|
||||
{
|
||||
return self::get("main.enable_pt_gen_system") == "yes";
|
||||
}
|
||||
|
||||
public static function getIsUseChallengeResponseAuthentication(): bool
|
||||
{
|
||||
return self::get("security.use_challenge_response_authentication") == "yes";
|
||||
|
||||
@@ -9,7 +9,11 @@ class TorrentExtra extends NexusModel
|
||||
{
|
||||
public $timestamps = true;
|
||||
|
||||
protected $fillable = ['torrent_id', 'descr', 'ori_descr', 'media_info', 'nfo'];
|
||||
protected $fillable = ['torrent_id', 'descr', 'ori_descr', 'media_info', 'nfo', 'pt_gen'];
|
||||
|
||||
protected $casts = [
|
||||
'pt_gen' => 'array',
|
||||
];
|
||||
|
||||
public function torrent()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user