fix: restore ordinary user overview and correct brand name

This commit is contained in:
wlx committed 2026-09-29 19:50:10 +08:00
1 parent 558c0dcdd5
commit 3969a50eee
4 files changed
+138 -43

No files matched your search

@@ -491,8 +491,9 @@ public class AsyncProviderClient {
private String keyForFingerprint(String routeId, String upstreamModel, Environment environment,
ConcurrentMap<String, AtomicInteger> cursors, String fingerprint) {
if (fingerprint == null || fingerprint.isBlank()) return nextApiKey(routeId, upstreamModel, environment, cursors);
List<String> candidates = routeKeys(routeId, upstreamModel, environment);
if (candidates.isEmpty()) candidates = apiKeys;
List<String> candidates = new ArrayList<>(routeKeys(routeId, upstreamModel, environment));
candidates.addAll(apiKeys);
candidates = candidates.stream().distinct().toList();
for (String candidate : candidates) if (fingerprint.equals(keyFingerprint(candidate))) return candidate;
throw new ApiException("UPSTREAM_KEY_NOT_AVAILABLE", "创建任务时使用的上游凭据已从服务器配置中移除,无法安全轮询", 503);
}