1. 调整异常处理类

2. 统一职责分工
3. 清除多余代码
This commit is contained in:
技术老胡
2026-02-24 13:37:35 +08:00
parent d29751cce8
commit d5a134d3a8
59 changed files with 3370 additions and 646 deletions

View File

@@ -0,0 +1,28 @@
<?php
namespace app\events;
use app\repositories\SystemConfigRepository;
/**
* 系统配置相关事件处理
*
* 负责在配置更新后重新从数据库加载缓存
*/
class SystemConfig
{
/**
* 重新加载系统配置缓存
*
* @param mixed $data 事件数据(此处用不到)
* @return void
*/
public function reload($data = null): void
{
// 通过仓储重新加载缓存
$repository = new SystemConfigRepository();
$repository->reloadCache();
}
}