♻️ 书源 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 7273cef5e7
commit c24928e413
6 files changed
+7 -7

No files matched your search

+2 -2
View File
@@ -8,7 +8,7 @@
local Assert = require("support.assert")
local Themed = require("support.theme_stubs")
require("source.logout").replaceLibrary = function(id, commit)
Assert.eq(id, "ext.qimao")
Assert.eq(id, "qimao")
commit()
return true
end
@@ -90,7 +90,7 @@ Assert.eq(login_phone, "13800000000")
Assert.eq(login_code, "001234")
Assert.eq(checked_token, "new-token", "登录返回的 token 仍先校验")
Assert.eq(saved, "new-token")
Assert.eq(authorized, "ext.qimao")
Assert.eq(authorized, "qimao")
Assert.is_true(reloaded)
Assert.is_nil(cfg.phone, "不持久化手机号或短信码")
Assert.is_nil(cfg.code)
+1 -1
View File
@@ -18,7 +18,7 @@ package.preload["moonsource_qimao.mapper"] = function()
}
end
package.preload["source.base"] = function()
return { loadMeta = function() return { id = "ext.qimao", name = "七猫", type = "chapter" } end }
return { loadMeta = function() return { id = "qimao", name = "七猫", type = "chapter" } end }
end
package.preload["source.browse"] = function() return {} end
package.preload["source.shelf"] = function() return {} end