♻️ 书源 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 01e572a5ee
commit f8ad3f73a6
29 files changed
+173 -173

No files matched your search

+3 -3
View File
@@ -101,7 +101,7 @@ do
},
},
chapters = { { title = "课堂解答", chapterUid = 4, chapterIdx = 4 } },
}, nil, nil, "ext.weread", "820954")
}, nil, nil, "weread", "820954")
Assert.eq(#anns, 1)
Assert.eq(anns[1].chapter_idx, 4)
Assert.eq(anns[1].wr_range, "303-332")
@@ -128,13 +128,13 @@ do
updated = {
{ chapterUid = "8", chapterIdx = 8, markText = "x", range = "0-1", type = 1, createTime = 1 },
},
}, nil, nil, "ext.weread", "1")[1].chapter_idx)
}, nil, nil, "weread", "1")[1].chapter_idx)
Assert.is_nil(Notes.toAnnotations({
chapters = { { chapterUid = "9", chapterIdx = 9 } },
updated = {
{ chapterUid = "9", markText = "x", range = "0-1", type = 1, createTime = 1 },
},
}, nil, nil, "ext.weread", "1")[1].chapter_idx)
}, nil, nil, "weread", "1")[1].chapter_idx)
end
--- 单条划线走 locateBatch,返回 pos0, pos1;定位不到返回 nil。