fix: clear orphan qdreader bindings on save
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
//[author: Hermes]
|
||||
//[service: BOSS]
|
||||
//[class: 工具类]
|
||||
//[version: 2.4.0]
|
||||
//[version: 2.4.1]
|
||||
//[platform: web,qq,wx,tg,tb,fs,we]
|
||||
//[public: false]
|
||||
//[price: 0]
|
||||
@@ -242,7 +242,7 @@ function contentText() {
|
||||
}
|
||||
function usage() {
|
||||
return [
|
||||
"启点读书签到插件 v2.4.0",
|
||||
"启点读书签到插件 v2.4.1",
|
||||
"【一级菜单】",
|
||||
"账号管理:启点账号",
|
||||
"执行查询:启点查询",
|
||||
@@ -653,6 +653,11 @@ function handleSaveCookie(arg, store, bind) {
|
||||
if (!uid) return { ok: false, text: "无法从 Cookie 识别 uid。请确认 QX 抓的是启点读书福利中心 getlogininfo 请求,Cookie 内应包含 QDHeader 或 uid。", uids: savedUids }
|
||||
var isNew = !store[uid]
|
||||
var oldOwner = bind[uid] || ""
|
||||
if (!store[uid] && oldOwner && oldOwner !== me) {
|
||||
delete bind[uid]
|
||||
oldOwner = ""
|
||||
lines.push("检测到 uid: " + uid + " 只有旧绑定没有CK,已自动清理残留绑定")
|
||||
}
|
||||
if (store[uid] && oldOwner && me && oldOwner !== me) {
|
||||
lines.push("无权更新 uid: " + uid + "(该账号已绑定其他用户)")
|
||||
continue
|
||||
|
||||
Reference in New Issue
Block a user