Fix role combat query (#802)

This commit is contained in:
ZM.J 2024-09-23 19:53:33 +08:00 committed by GitHub
parent ffd1bd7670
commit 4cb7084722
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -7,7 +7,8 @@ export async function RoleCombatSummary (e) {
if (!Cfg.get('roleCombat', false) && !isMatch) { if (!Cfg.get('roleCombat', false) && !isMatch) {
return false return false
} }
let mys = await MysApi.init(e, 'all') // 需要自身 ck 查询
let mys = await MysApi.init(e, 'cookie')
if (!mys || !mys.uid) { if (!mys || !mys.uid) {
if (isMatch) { if (isMatch) {
e.reply(`请绑定ck后再使用${e.original_msg || e.msg}`) e.reply(`请绑定ck后再使用${e.original_msg || e.msg}`)