修复智能路径处理对默认token并不填写场景下无效 (#99)

(修复小幻不能使用默认token不填写)
This commit is contained in:
Elegy233 authored and GitHub committed 2025-11-25 23:47:51 +08:00
1 parent 7df3047260
commit b56f0dda5a
1 file changed
+1 -1
+1 -1
View File
@@ -70,7 +70,7 @@ async function handleRequest(req, env, deployPlatform, clientIp) {
// 如果 token 是默认值 87654321
if (globals.token === "87654321") {
// 检查第一段是否是已知的 API 路径(不是 token)
const knownApiPaths = ["api", "v1", "v2"];
const knownApiPaths = ["api", "v1", "v2", "search", "match", "bangumi", "comment"];
if (parts.length > 0) {
// 如果第一段是正确的默认 token