2022-03-13 21:45:48 +08:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
namespace App\Models;
|
|
|
|
|
|
|
|
|
|
|
2025-10-12 03:48:04 +07:00
|
|
|
use App\Models\Traits\NexusActivityLogTrait;
|
|
|
|
|
|
2022-03-13 21:45:48 +08:00
|
|
|
class TorrentState extends NexusModel
|
|
|
|
|
{
|
2025-10-12 03:48:04 +07:00
|
|
|
use NexusActivityLogTrait;
|
|
|
|
|
|
2022-08-26 17:35:49 +08:00
|
|
|
protected $fillable = ['global_sp_state', 'deadline', 'begin'];
|
2022-03-13 21:45:48 +08:00
|
|
|
|
|
|
|
|
protected $table = 'torrents_state';
|
2022-07-09 18:06:09 +08:00
|
|
|
|
|
|
|
|
public function getGlobalSpStateTextAttribute()
|
|
|
|
|
{
|
|
|
|
|
return Torrent::$promotionTypes[$this->global_sp_state]['text'] ?? '';
|
|
|
|
|
}
|
2022-03-13 21:45:48 +08:00
|
|
|
}
|