♻️ 书源 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 818a3d9067
commit a8ce4da366
13 files changed
+42 -42

No files matched your search

@@ -26,7 +26,7 @@ local DOWNLOAD_DENIED = 101
--- 京东会话失效文案:网页 Cookie 无续期,只能引导重新扫码。
local function authExpired()
return require("source.auth").expire("ext.jdread", _("点这个提示上的「重新登录」。二维码出来以后,打开手机京东 App,找到「扫一扫」,对准屏幕上的二维码,在手机上点确认。"))
return require("source.auth").expire("jdread", _("点这个提示上的「重新登录」。二维码出来以后,打开手机京东 App,找到「扫一扫」,对准屏幕上的二维码,在手机上点确认。"))
end
--- 响应 message 是否表示未登录 / 会话失效。
@@ -58,7 +58,7 @@ local function decodeApi(raw, err, authed)
end
return nil, wire.message or (_("京东读书错误 ") .. tostring(wire.result_code))
end
if authed then require("source.auth").ok("ext.jdread") end
if authed then require("source.auth").ok("jdread") end
return wire
end
@@ -84,7 +84,7 @@ end
--- 会话罐:保存的 Cookie 打底,服务端轮换的会话 Cookie 留在罐里。
---@return CookieJar|nil
function Client:jar()
return require("http.cookie_jar").session("ext.jdread", self.cookie)
return require("http.cookie_jar").session("jdread", self.cookie)
end
---@param referer string