♻️ 书源 id 去掉 ext. 前缀,沿用旧内置源数据

Co-authored-by: Copilot <[email protected]>
This commit is contained in:
GarfieldandCopilot committed 2026-11-16 14:07:45 +08:00
1 parent 0907702861
commit b45d47aea5
8 files changed
+38 -38

No files matched your search

@@ -22,7 +22,7 @@ local Client = {}
--- 已保存的登录 Cookie。
---@return string|nil
function Client.cookie()
local cookie = require("utils.settings").getSource("ext.xiaoxiang").cookie
local cookie = require("utils.settings").getSource("xiaoxiang").cookie
return type(cookie) == "string" and cookie ~= "" and cookie or nil
end
@@ -42,7 +42,7 @@ local function page(url, cb)
end)
end
local SOURCE_ID = "ext.xiaoxiang"
local SOURCE_ID = "xiaoxiang"
local API = "https://www.xxsypro.com/api"
--- 请求头里的 Cookie:没有 csrfToken 就补一个,网页端要求 Cookie 与 `_csrfToken` 同值。