From 1c374e9d77a32d04101516523aaf0f546c14b36b Mon Sep 17 00:00:00 2001 From: batvbs Date: Mon, 27 Nov 2023 19:54:24 +0000 Subject: [PATCH] =?UTF-8?q?!130=20=E4=BF=AE=E5=A4=8D=20=E4=BB=85=E7=BB=91?= =?UTF-8?q?=E5=AE=9A=E6=98=9F=E9=93=81=E6=97=B6=20`*=E5=88=A0=E9=99=A4ck`?= =?UTF-8?q?=20=E6=8A=A5=E9=94=99=EF=BC=9A=E5=88=A0=E9=99=A4=E5=A4=B1?= =?UTF-8?q?=E8=B4=A5=EF=BC=8C=E5=BD=93=E5=89=8D=E7=9A=84UID=E6=97=A0CK?= =?UTF-8?q?=E4=BF=A1=E6=81=AF=20*=20=E4=BF=AE=E5=A4=8D=20=E4=BB=85?= =?UTF-8?q?=E7=BB=91=E5=AE=9A=E6=98=9F=E9=93=81=E6=97=B6=20`*=E5=88=A0?= =?UTF-8?q?=E9=99=A4ck`=20=E6=8A=A5=E9=94=99=EF=BC=9A=E5=88=A0=E9=99=A4?= =?UTF-8?q?=E5=A4=B1=E8=B4=A5=EF=BC=8C=E5=BD=93=E5=89=8D=E7=9A=84UID?= =?UTF-8?q?=E6=97=A0CK=E4=BF=A1=E6=81=AF=20*=20update=20plugins/genshin/mo?= =?UTF-8?q?del/user.js.=20*=20update?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugins/genshin/apps/user.js | 2 +- plugins/genshin/model/user.js | 10 +++++++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/plugins/genshin/apps/user.js b/plugins/genshin/apps/user.js index f8b2ba7..32ee652 100644 --- a/plugins/genshin/apps/user.js +++ b/plugins/genshin/apps/user.js @@ -34,7 +34,7 @@ export class user extends plugin { fnc: 'myCk' }, { - reg: '^#?删除(ck|cookie)$', + reg: '^#?(原神|星铁)?删除(ck|cookie)$', fnc: 'delCk' }, { diff --git a/plugins/genshin/model/user.js b/plugins/genshin/model/user.js index 106104a..6e33792 100644 --- a/plugins/genshin/model/user.js +++ b/plugins/genshin/model/user.js @@ -140,6 +140,7 @@ export default class User extends base { msg.push( '星穹铁道支持:', '【*uid】当前绑定ck uid列表', + '【*删除ck】删除当前绑定ck', '【*体力】体力信息', '【*面板】【*更新面板】面板信息' ) @@ -150,9 +151,16 @@ export default class User extends base { /** 删除绑定ck */ async delCk () { + let game; + if (this.e.game) { + game = this.e.game; + } else { + game = 'gs'; + } + //判断是原神还是星铁 let user = await this.user() // 获取当前uid - let uidData = user.getUidData('', this.e) + let uidData = user.getUidData('' , game=game, this.e) if (!uidData || uidData.type !== 'ck' || !uidData.ltuid) { return `删除失败:当前的UID${uidData?.uid}无CK信息` }