♻️ 书源 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 bea9eee670
commit 9e45e29d83
9 files changed
+21 -21

No files matched your search

+2 -2
View File
@@ -25,14 +25,14 @@ package.loaded["source.chapter"] = {
}
package.loaded["source.toc"] = {
markPaid = function(id, stable_id, uid, value)
Assert.eq(id, "ext.netease")
Assert.eq(id, "netease")
Assert.eq(stable_id, "fixture")
Assert.eq(uid, "c1")
paid = value
end,
}
local source = require("moonsource_netease.source").new()
local identity = { source_id = "ext.netease", stable_id = "fixture" }
local identity = { source_id = "netease", stable_id = "fixture" }
local chapter = { idx = 1, uid = "c1", title = "第一章", vip = true }
source:openBookAsync(identity, { chapter_idx = 1 }, function() end)
local result, failure