fix: 子用户抽卡记录

This commit is contained in:
Aluxes 2024-05-24 01:55:48 +08:00
parent 6cbf429d9b
commit 53a03dbb60
No known key found for this signature in database
GPG Key ID: 6696152F9C003087

View File

@ -47,12 +47,12 @@ let Gacha = {
} }
} }
let uid = e.uid || await getTargetUid(e) let uid = e.uid || await getTargetUid(e)
let qq = e.user_id let qq = e.user.qq
if (!uid || !qq) { if (!uid || !qq) {
return false return false
} }
let gacha = GachaData.analyse(e.user_id, uid, type, game) let gacha = GachaData.analyse(qq, uid, type, game)
if (!gacha) { if (!gacha) {
e.reply([`UID:${uid} 本地暂无抽卡信息,请通过【#抽卡帮助】获得绑定帮助...`, new Button(e).gacha()]) e.reply([`UID:${uid} 本地暂无抽卡信息,请通过【#抽卡帮助】获得绑定帮助...`, new Button(e).gacha()])
return true return true
@ -86,11 +86,11 @@ let Gacha = {
type = 'all' type = 'all'
} }
let uid = e.uid || await getTargetUid(e) let uid = e.uid || await getTargetUid(e)
let qq = e.user_id let qq = e.user.qq
if (!uid || !qq) { if (!uid || !qq) {
return false return false
} }
let gacha = GachaData.stat(e.user_id, uid, type, game) let gacha = GachaData.stat(qq, uid, type, game)
if (!gacha) { if (!gacha) {
e.reply([`UID:${uid} 本地暂无抽卡信息,请通过【#抽卡帮助】获得绑定帮助...`, new Button(e).gacha()]) e.reply([`UID:${uid} 本地暂无抽卡信息,请通过【#抽卡帮助】获得绑定帮助...`, new Button(e).gacha()])
return true return true