From 534e43585472b39fbbb60f18c38e64e0798567ad Mon Sep 17 00:00:00 2001
From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com>
Date: Wed, 11 Mar 2026 10:23:59 +0000
Subject: [PATCH] fix: add offline fallback for dev ID verification and
prioritize China-accessible API providers
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
- When backend is unreachable, allow proceeding with format-only validation (offline mode)
- Reorder API endpoints to prioritize China-accessible providers (DeepSeek, Moonshot, 智谱, 云雾)
- Add 🇨🇳 visual indicators for mainland China accessible platforms
- Add AbortController timeout (10s) for auth requests
- Add .cn-ok CSS class for green-highlighted China-compatible tags
Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
---
persona-studio/frontend/index.html | 45 ++++++++++++++++++++----------
persona-studio/frontend/style.css | 6 ++++
2 files changed, 37 insertions(+), 14 deletions(-)
diff --git a/persona-studio/frontend/index.html b/persona-studio/frontend/index.html
index 94ce330f..ccc4c3b4 100644
--- a/persona-studio/frontend/index.html
+++ b/persona-studio/frontend/index.html
@@ -97,13 +97,14 @@
支持平台:
- 云雾 AI
+ 🇨🇳 DeepSeek
+ 🇨🇳 Moonshot
+ 🇨🇳 智谱 AI
+ 🇨🇳 云雾 AI
OpenAI
- DeepSeek
Google Gemini
- Moonshot
- 智谱 AI
+ 🇨🇳 标记 = 中国大陆可直接访问,无需国际网络