From 53a03dbb601a92977d7dfe60bb25cb8ff20b0d2b Mon Sep 17 00:00:00 2001 From: Aluxes <39981645+AshenAshes@users.noreply.github.com> Date: Fri, 24 May 2024 01:55:48 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=AD=90=E7=94=A8=E6=88=B7=E6=8A=BD?= =?UTF-8?q?=E5=8D=A1=E8=AE=B0=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/gacha/Gacha.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/apps/gacha/Gacha.js b/apps/gacha/Gacha.js index ac81b659..bd8f4321 100644 --- a/apps/gacha/Gacha.js +++ b/apps/gacha/Gacha.js @@ -47,12 +47,12 @@ let Gacha = { } } let uid = e.uid || await getTargetUid(e) - let qq = e.user_id + let qq = e.user.qq if (!uid || !qq) { return false } - let gacha = GachaData.analyse(e.user_id, uid, type, game) + let gacha = GachaData.analyse(qq, uid, type, game) if (!gacha) { e.reply([`UID:${uid} 本地暂无抽卡信息,请通过【#抽卡帮助】获得绑定帮助...`, new Button(e).gacha()]) return true @@ -86,11 +86,11 @@ let Gacha = { type = 'all' } let uid = e.uid || await getTargetUid(e) - let qq = e.user_id + let qq = e.user.qq if (!uid || !qq) { return false } - let gacha = GachaData.stat(e.user_id, uid, type, game) + let gacha = GachaData.stat(qq, uid, type, game) if (!gacha) { e.reply([`UID:${uid} 本地暂无抽卡信息,请通过【#抽卡帮助】获得绑定帮助...`, new Button(e).gacha()]) return true