torrent global state add begin

This commit is contained in:
xiaomlove
2022-08-26 17:35:49 +08:00
parent cedd9ec437
commit e6888c043c
12 changed files with 94 additions and 29 deletions

View File

@@ -18,6 +18,8 @@ class Setting extends NexusModel
const DIRECT_PERMISSION_CACHE_KEY_PREFIX = 'nexus_direct_permissions_';
const ROLE_PERMISSION_CACHE_KEY_PREFIX = 'nexus_role_permissions_';
const TORRENT_GLOBAL_STATE_CACHE_KEY = 'global_promotion_state';
/**
* get setting autoload = yes with cache
*

View File

@@ -5,7 +5,7 @@ namespace App\Models;
class TorrentState extends NexusModel
{
protected $fillable = ['global_sp_state', 'deadline'];
protected $fillable = ['global_sp_state', 'deadline', 'begin'];
protected $table = 'torrents_state';