fix(captcha): Backend default: cdn → jsdelivr

pull/2589/head
WittF 2025-06-28 00:28:40 +08:00
parent 53b4e74ef6
commit 0cc526f6e1
2 changed files with 2 additions and 2 deletions

View File

@ -395,7 +395,7 @@ var DefaultSettings = map[string]string{
"captcha_cap_instance_url": "",
"captcha_cap_site_key": "",
"captcha_cap_secret_key": "",
"captcha_cap_asset_server": "cdn",
"captcha_cap_asset_server": "jsdelivr",
"thumb_width": "400",
"thumb_height": "300",
"thumb_entity_suffix": "._thumb",

View File

@ -671,7 +671,7 @@ func (s *settingProvider) CapCaptcha(ctx context.Context) *Cap {
InstanceURL: s.getString(ctx, "captcha_cap_instance_url", ""),
SiteKey: s.getString(ctx, "captcha_cap_site_key", ""),
SecretKey: s.getString(ctx, "captcha_cap_secret_key", ""),
AssetServer: s.getString(ctx, "captcha_cap_asset_server", "cdn"),
AssetServer: s.getString(ctx, "captcha_cap_asset_server", "jsdelivr"),
}
}