perf: Optimize DataEase integration with Advanced Assistant

This commit is contained in:
fit2cloud-chenyw
2026-01-24 17:44:37 +08:00
committed by fit2cloud-chenyw
parent e626d13971
commit b9ce9d3ddf
6 changed files with 30 additions and 10 deletions
+4 -1
View File
@@ -107,7 +107,10 @@ class HttpService {
!!(assistantStore.getType % 2) &&
assistantStore.getCertificate
) {
if (config.method?.toLowerCase() === 'get' && /\/chat\/\d+$/.test(config.url || '')) {
if (
(config.method?.toLowerCase() === 'get' && /\/chat\/\d+$/.test(config.url || '')) ||
config.url?.includes('/system/assistant/ds')
) {
await assistantStore.refreshCertificate()
}
config.headers['X-SQLBOT-ASSISTANT-CERTIFICATE'] = btoa(