盲盒转盘 优化-缓存配置修改 提交

This commit is contained in:
2025-10-29 14:14:05 +08:00
parent 97b03db6e1
commit e9bedb277d
2 changed files with 2 additions and 2 deletions

View File

@@ -25,7 +25,7 @@ class BlindBoxTurntableGiftDrawWorldNew extends Model
$this->redis->connect(config('redis.host'), config('redis.port')); // 根据实际配置调整主机和端口
// 选择数据库1
$this->redis->select(1);
$this->cache_time = 60 *24;
$this->cache_time = 60*60; //缓存一小时
} catch (\Exception $e) {
Log::record('Redis连接失败: ' . $e->getMessage(), 'error');
$this->redis = null;