优化了一些问题fix(captcha)

This commit is contained in:
2026-08-29 17:03:05 +08:00
parent 41da33bb13
commit 88eb29c645
10 changed files with 1074 additions and 407 deletions
+4 -1
View File
@@ -400,7 +400,7 @@ class SchemaProvider {
// Captcha: always surface the normalized positive scene list.
if ($option_key === 'aksrt_captcha_config' && function_exists('aksrt_get_captcha_config')) {
$normalized = aksrt_get_captcha_config();
foreach (['enabled', 'active_provider', 'enabled_scenarios', 'tencent', 'aliyun', 'cloudflare', 'geetest', 'mode'] as $key) {
foreach (['enabled', 'active_provider', 'enabled_scenarios', 'tencent', 'aliyun', 'cloudflare', 'geetest'] as $key) {
if (array_key_exists($key, $normalized)) {
$data[$key] = $normalized[$key];
}
@@ -437,6 +437,9 @@ class SchemaProvider {
}
$updated = update_option($option_key, $stored);
if ($option_key === 'aksrt_captcha_config' && function_exists('aksrt_captcha_config_reset')) {
aksrt_captcha_config_reset();
}
\AKSRT\Settings\Settings::flush_settings_cache();
if (isset($stored['site_favicon'])) {