fix cover issue on page torrents.php

This commit is contained in:
xiaomlove
2025-09-20 00:45:53 +07:00
parent 41ad91b183
commit ee4739fd8b
5 changed files with 41 additions and 15 deletions

View File

@@ -4,7 +4,7 @@ function get_global_sp_state()
{
static $global_promotion_state;
$cacheKey = \App\Models\Setting::TORRENT_GLOBAL_STATE_CACHE_KEY;
if (!$global_promotion_state) {
if (is_null($global_promotion_state)) {
$row = \Nexus\Database\NexusDB::remember($cacheKey, 600, function () use ($cacheKey) {
return \Nexus\Database\NexusDB::getOne('torrents_state', 1);
});