高考版优化

审核模式优化
This commit is contained in:
Ghost
2026-04-29 18:01:26 +08:00
parent 59419c4ce9
commit a411bf7b21
134 changed files with 19898 additions and 3371 deletions

View File

@@ -183,28 +183,3 @@ if (!function_exists('miniprogram_audit_mode_on')) {
}
}
/**
* 提审模式或面相审核system.maintenanceMode时隐藏高考志愿相关能力与小程序 isAuditHideAiMode 对齐)
*/
if (!function_exists('audit_mode_blocks_gaokao_api')) {
function audit_mode_blocks_gaokao_api(): bool
{
if (miniprogram_audit_mode_on()) {
return true;
}
try {
$row = \think\facade\Db::name('system_config')->where('key', 'system')->find();
if ($row && !empty($row['value'])) {
$v = is_string($row['value']) ? json_decode($row['value'], true) : $row['value'];
if (is_array($v) && !empty($v['maintenanceMode'])) {
return true;
}
}
} catch (\Throwable $e) {
return false;
}
return false;
}
}