refactor: 修改站点配置项输出接口

This commit is contained in:
2025-03-12 17:33:03 +08:00
parent 76529d2428
commit c2cd2219cc

View File

@@ -91,7 +91,7 @@ class SiteConfig
$extra = explode(PHP_EOL, $val['extra']); $extra = explode(PHP_EOL, $val['extra']);
$val['extra'] = []; $val['extra'] = [];
foreach ($extra as $v) { foreach ($extra as $v) {
if (preg_match('/^([^:]+):(.*?)(?:\[(.*?)\])?$/i', $v, $match)) { if (preg_match('/^([^:]+):(.*?)(?:\[(.*?)\])?$/i', trim($v), $match)) {
$item = [ $item = [
'name' => $match[2], 'name' => $match[2],
'value' => $match[1], 'value' => $match[1],