项目提交

This commit is contained in:
Ghost
2026-03-20 18:20:47 +08:00
parent 2f82ee3b23
commit 79512b2fc6
26 changed files with 268 additions and 175 deletions

View File

@@ -103,6 +103,16 @@ class AppConfig extends BaseController
}
$siteTitle = $miniprogramName !== '' ? $miniprogramName : ($siteName !== '' ? $siteName : '神仙团队AI性格测试');
// 审核模式(原 maintenanceMode开启后首页展示「开始性格测试」并跳转 test-select
$maintenanceMode = false;
$systemRow = Db::name('system_config')->where('key', 'system')->find();
if ($systemRow && !empty($systemRow['value'])) {
$sysVal = is_string($systemRow['value']) ? json_decode($systemRow['value'], true) : $systemRow['value'];
if (is_array($sysVal) && !empty($sysVal['maintenanceMode'])) {
$maintenanceMode = true;
}
}
// 小程序文案配置(分析中提示、按钮、报告标题等)
$textConfig = [
'analyzingTitle' => '正在分析中',
@@ -144,6 +154,7 @@ class AppConfig extends BaseController
'miniprogramName' => $miniprogramName,
'siteTitle' => $siteTitle,
'textConfig' => $textConfig,
'maintenanceMode' => $maintenanceMode,
]);
}