add global promotion deadline + fix grane medal

This commit is contained in:
xiaomlove
2022-07-09 18:06:09 +08:00
parent 50759b1cf3
commit afa8cdce99
40 changed files with 1936 additions and 20 deletions
+6 -1
View File
@@ -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'] ?? '';
}
}