♻️ 书源 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 f7c9afb9ca
commit 6f301c2f83
8 files changed
+8 -8

No files matched your search

+1 -1
View File
@@ -14,7 +14,7 @@ local cached = { { uid = "legacy-chapter", title = "旧目录" } }
package.preload["json"] = function() return Json end
package.preload["source.base"] = function()
return {
loadMeta = function() return { id = "ext.dedao", name = "得到阅读", type = "chapter" } end,
loadMeta = function() return { id = "dedao", name = "得到阅读", type = "chapter" } end,
defer = function(done, ...)
done(...)
return { cancel = function() end }
+1 -1
View File
@@ -31,7 +31,7 @@ local shelf = Mapper.shelf({
})
Assert.eq(#shelf, 1)
Assert.eq(shelf[1].stable_id, "e1")
Assert.eq(shelf[1].source_id, "ext.dedao")
Assert.eq(shelf[1].source_id, "dedao")
local found = Mapper.search({
data = { moduleList = { { layerDataList = {
+1 -1
View File
@@ -239,7 +239,7 @@ do
Assert.eq(cfg.cookie, before_cookie)
Assert.eq(cfg.uid, before_uid)
Client.confirmLoginAsync({ session = "late" }, function(ok, err) logged, login_err = ok, err end)
beginLogin("ext.dedao")
beginLogin("dedao")
cfg.cookie, cfg.uid, cfg.logged_in = nil, nil, nil
Client.reset()
held[path].done(wire({ uid_hazy = "late-user" }), nil, {})