perf: Optimize embedded compatibility for multi-domain verification

This commit is contained in:
fit2cloud-chenyw
2025-11-26 13:29:26 +08:00
committed by fit2cloud-chenyw
parent e881b3ef47
commit 0e418d2ee8
7 changed files with 29 additions and 9 deletions
+6
View File
@@ -100,6 +100,9 @@ class HttpService {
if (!assistantStore.getType || assistantStore.getType === 2) {
config.headers['X-SQLBOT-ASSISTANT-ONLINE'] = assistantStore.getOnline
}
if (assistantStore.getHostOrigin) {
config.headers['X-SQLBOT-HOST-ORIGIN'] = assistantStore.getHostOrigin
}
}
const locale = getLocale()
if (locale) {
@@ -302,6 +305,9 @@ class HttpService {
encodeURIComponent(assistantStore.getCertificate)
)
}
if (assistantStore.getHostOrigin) {
heads['X-SQLBOT-HOST-ORIGIN'] = assistantStore.getHostOrigin
}
if (!assistantStore.getType || assistantStore.getType === 2) {
heads['X-SQLBOT-ASSISTANT-ONLINE'] = assistantStore.getOnline
}