♻️ 书源 id 去掉 ext. 前缀,沿用旧内置源数据
Co-authored-by: Copilot <[email protected]>
This commit is contained in:
1 parent
85dd9c6c6b
commit
90461c8c06
11 files changed
+16
-16
No files matched your search
@@ -71,7 +71,7 @@ local function vipToc()
|
||||
{ uid = "2", idx = 2, title = "二", vip = true, toc_version = 7 },
|
||||
}
|
||||
end
|
||||
local identity = { source_id = "ext.jjwxc", stable_id = "9" }
|
||||
local identity = { source_id = "jjwxc", stable_id = "9" }
|
||||
|
||||
-- 缓存命中:开探测;同一本书再问不重开;问完一次性写回
|
||||
do
|
||||
@@ -126,7 +126,7 @@ do
|
||||
local src = Jjwxc.new()
|
||||
src:loadTocAsync(identity, function() end)
|
||||
Stubs.flush()
|
||||
src:loadTocAsync({ source_id = "ext.jjwxc", stable_id = "10" }, function() end)
|
||||
src:loadTocAsync({ source_id = "jjwxc", stable_id = "10" }, function() end)
|
||||
Stubs.flush()
|
||||
Assert.is_true(pending[1].cancelled)
|
||||
Assert.eq(src.probe.stable_id, "10")
|
||||
|
||||
Reference in new issue
Block a user