kbzhishiku

This commit is contained in:
runny committed 2026-05-12 08:16:42 +08:00
1 parent 7f542f54a5
commit 08a19ebe96
68 files changed
+16602 -229

No files matched your search

+3 -3
View File
@@ -43,7 +43,7 @@ def _is_allowed_preview_url(target_url: str) -> bool:
return False
# 显式放行配置中的集成服务主机。
integration_base = (current_app.config.get("INTEGRATION_API_BASE") or "").strip()
integration_base = (IntegrationApiService.get_base_url() or "").strip()
if integration_base:
integration_host = (urlparse(integration_base).hostname or "").strip().lower()
if integration_host and host == integration_host:
@@ -76,8 +76,8 @@ def _fetch_preview_source_bytes(file_url: str):
from urllib.parse import parse_qs
headers = {}
base_url = current_app.config.get('INTEGRATION_API_BASE', '')
api_key = current_app.config.get('INTEGRATION_API_KEY', '')
base_url = IntegrationApiService.get_base_url()
api_key = IntegrationApiService.get_api_key()
def _resolve_latest_integration_url(raw_url: str):
dataset_id = ''