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

@@ -232,7 +232,7 @@ local function sessionRequest(method, url, body, opts, cb)
attempt(true)
elseif rejected then
if renew_err then logger.warn("wechat auth renew rejected", renew_err) end
cb(nil, require("source.auth").expire("ext.weread", _("点这个提示上的「重新登录」。二维码出来以后,打开手机微信,点右上角「+」,再点「扫一扫」,对准屏幕上的二维码,在手机上点确认。")), res)
cb(nil, require("source.auth").expire("weread", _("点这个提示上的「重新登录」。二维码出来以后,打开手机微信,点右上角「+」,再点「扫一扫」,对准屏幕上的二维码,在手机上点确认。")), res)
else
cb(nil, renew_err or _("请求失败"), res)
end
@@ -246,7 +246,7 @@ local function sessionRequest(method, url, body, opts, cb)
if opts.no_expire then
cb(nil, _("微信读书拒绝了请求,请稍后再试"), res)
else
cb(nil, require("source.auth").expire("ext.weread", _("点这个提示上的「重新登录」。二维码出来以后,打开手机微信,点右上角「+」,再点「扫一扫」,对准屏幕上的二维码,在手机上点确认。")), res)
cb(nil, require("source.auth").expire("weread", _("点这个提示上的「重新登录」。二维码出来以后,打开手机微信,点右上角「+」,再点「扫一扫」,对准屏幕上的二维码,在手机上点确认。")), res)
end
return
end
@@ -254,7 +254,7 @@ local function sessionRequest(method, url, body, opts, cb)
cb(nil, "HTTP " .. tostring(code), res)
return
end
if not opts.skip_auth_retry then require("source.auth").ok("ext.weread") end
if not opts.skip_auth_retry then require("source.auth").ok("weread") end
if res then res.json = data end
cb(raw, nil, res)
end)