diff --git a/logs/server.log b/logs/server.log
index e02f463..7c96574 100644
Binary files a/logs/server.log and b/logs/server.log differ
diff --git a/static/tts.html b/static/tts.html
index 87f0f4c..e50a0b7 100644
--- a/static/tts.html
+++ b/static/tts.html
@@ -372,9 +372,9 @@
🌐 Edge TTS
检测中...
-
+
🤖 ChatTTS
-
暂未部署
+
检测中...
@@ -490,13 +490,20 @@
// 更新状态
data.providers.forEach(p => {
- if (p.name === 'edge') {
- const statusEl = document.getElementById('edgeStatus');
+ const statusElId = p.name === 'edge' ? 'edgeStatus' :
+ p.name === 'chattts' ? 'chatttsStatus' : null;
+
+ if (statusElId) {
+ const statusEl = document.getElementById(statusElId);
statusEl.textContent = p.available ? '可用 ✓' : '不可用';
- const optionEl = ttsOptions.querySelector('[data-provider="edge"]');
- if (p.available) {
- optionEl.classList.remove('disabled');
+ const optionEl = ttsOptions.querySelector(`[data-provider="${p.name}"]`);
+ if (optionEl) {
+ if (p.available) {
+ optionEl.classList.remove('disabled');
+ } else {
+ optionEl.classList.add('disabled');
+ }
}
}
});