mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-22 10:57:27 +08:00
add global promotion deadline + fix grane medal
This commit is contained in:
@@ -5,7 +5,12 @@ namespace App\Models;
|
||||
|
||||
class TorrentState extends NexusModel
|
||||
{
|
||||
public $incrementing = false;
|
||||
protected $fillable = ['global_sp_state', 'deadline'];
|
||||
|
||||
protected $table = 'torrents_state';
|
||||
|
||||
public function getGlobalSpStateTextAttribute()
|
||||
{
|
||||
return Torrent::$promotionTypes[$this->global_sp_state]['text'] ?? '';
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user