♻️ 书源 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 0c6553d8d9
commit fb28126f5a
5 files changed
+5 -5

No files matched your search

@@ -7,7 +7,7 @@
local _ = require("l10n").get("moonsource_changpei") local _ = require("l10n").get("moonsource_changpei")
return { return {
id = "ext.changpei", id = "changpei",
name = _("长佩文学"), name = _("长佩文学"),
type = "chapter", type = "chapter",
description = _("长佩文学书架与在线阅读"), description = _("长佩文学书架与在线阅读"),
@@ -19,7 +19,7 @@ local _ = require("l10n").get("moonsource_changpei")
local Client = {} local Client = {}
local SOURCE_ID = "ext.changpei" local SOURCE_ID = "changpei"
local LOGIN_REQUIRED = 9996 local LOGIN_REQUIRED = 9996
Client.VERIFY_REQUIRED = _("长佩需要滑块验证,请打开章节并扫码完成验证,无需重新登录。") Client.VERIFY_REQUIRED = _("长佩需要滑块验证,请打开章节并扫码完成验证,无需重新登录。")
@@ -10,7 +10,7 @@ local _ = require("l10n").get("moonsource_changpei")
local Mapper = {} local Mapper = {}
local SOURCE_ID = "ext.changpei" local SOURCE_ID = "changpei"
-- 网页端正文 AES-128-CBC 的固定密钥与 IV(出自官网 h5 脚本)。 -- 网页端正文 AES-128-CBC 的固定密钥与 IV(出自官网 h5 脚本)。
local KEY = "u0LRrbu$Enm84koA" local KEY = "u0LRrbu$Enm84koA"
@@ -11,7 +11,7 @@
local _ = require("l10n").get("moonsource_changpei") local _ = require("l10n").get("moonsource_changpei")
local CookieLogin = require("source.cookie_login") local CookieLogin = require("source.cookie_login")
local SOURCE_ID = "ext.changpei" local SOURCE_ID = "changpei"
local Setting = {} local Setting = {}
---@return boolean ---@return boolean
+1 -1
View File
@@ -24,7 +24,7 @@ end
package.preload["reader.session"] = function() return { current = function() return nil end } end package.preload["reader.session"] = function() return { current = function() return nil end } end
package.preload["book.books_db"] = function() package.preload["book.books_db"] = function()
return { prepareAccountSync = function(id, shelf_add) return { prepareAccountSync = function(id, shelf_add)
Assert.eq(id, "ext.changpei") Assert.eq(id, "changpei")
Assert.is_true(shelf_add) Assert.is_true(shelf_add)
Assert.eq(cfg.cookie, "session=old", "准备失败时还须保留旧账号") Assert.eq(cfg.cookie, "session=old", "准备失败时还须保留旧账号")
prepared = prepared + 1 prepared = prepared + 1