高考版优化
审核模式优化
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user