This commit is contained in:
u2nyakim 2025-08-28 15:37:51 +08:00
parent ac282d57d5
commit edd588dede

View File

@ -148,6 +148,14 @@ class ConfigController extends BaseController
{
$table_php = SysConfig::where(['status'=>1])->order(['name'=>'asc'])
->select();
$group_php = [];
foreach ($table_php as $item) {
if(!isset($group_php[$item['group']])){
$group_php[$item['group']] = [];
}
$group_php[$item['group']][$item['name']] = $item['value'];
}
$table_version = md5($table_php->toJson());
$cache_php = Cache::get('sysConfigInfo');
@ -156,7 +164,7 @@ class ConfigController extends BaseController
return $this->writeSuccess('success', [
// 表版本
'table_version'=> $table_version,
'table_php' => var_export($table_php->column('value','name'), true),
'table_php' => var_export($group_php, true),
// 缓存版本
'cache_version'=> $cache_version,
'cache_php' => var_export($cache_php, true),