♻️ 书源 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

@@ -49,15 +49,15 @@ local VERSION_HEADERS = {
--- wechat 源配置(会话字段与用户信息都在这里)。
---@return table
function Eink.config()
return require("utils.settings").getSource("ext.weread")
return require("utils.settings").getSource("weread")
end
---@param patch table 合并进 wechat 源配置并落盘
function Eink.save(patch)
local MoonSettings = require("utils.settings")
local c = MoonSettings.getSource("ext.weread")
local c = MoonSettings.getSource("weread")
for k, v in pairs(patch) do c[k] = v end
MoonSettings.saveSource("ext.weread", c)
MoonSettings.saveSource("weread", c)
end
--- 令牌就是网页会话(wr_vid/wr_skey 当 Cookie 可用),只落一份;eink 表只放续期要的两项。
@@ -80,7 +80,7 @@ local function saveSession(vid, access_token, refresh_token, device_id)
})
end
if current.wr_vid ~= vid then
return require("source.logout").replaceLibrary("ext.weread", commit)
return require("source.logout").replaceLibrary("weread", commit)
end
commit()
return true