mirror of
https://github.com/ikechan8370/chatgpt-plugin.git
synced 2025-12-18 06:17:06 +00:00
fix: 这户i对了吧
This commit is contained in:
parent
3427d23054
commit
9f7a51679f
1 changed files with 7 additions and 6 deletions
|
|
@ -32,12 +32,6 @@ export class QueryStarRailTool extends AbstractTool {
|
||||||
try {
|
try {
|
||||||
let { Panel } = await import('../../../StarRail-plugin/apps/panel.js')
|
let { Panel } = await import('../../../StarRail-plugin/apps/panel.js')
|
||||||
uid = await redis.get(`STAR_RAILWAY:UID:${qq}`)
|
uid = await redis.get(`STAR_RAILWAY:UID:${qq}`)
|
||||||
e.msg = '#sr面板' + uid
|
|
||||||
e.user_id = qq
|
|
||||||
e.isSr = true
|
|
||||||
let panel = new Panel(e)
|
|
||||||
panel.e = e
|
|
||||||
panel.panel(e).catch(e => logger.warn(e))
|
|
||||||
if (!uid) {
|
if (!uid) {
|
||||||
return '用户没有绑定uid,无法查询。可以让用户主动提供uid进行查询'
|
return '用户没有绑定uid,无法查询。可以让用户主动提供uid进行查询'
|
||||||
}
|
}
|
||||||
|
|
@ -46,6 +40,13 @@ export class QueryStarRailTool extends AbstractTool {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
|
let { Panel } = await import('../../../StarRail-plugin/apps/panel.js')
|
||||||
|
e.msg = '*面板' + uid
|
||||||
|
e.user_id = qq
|
||||||
|
e.isSr = true
|
||||||
|
let panel = new Panel(e)
|
||||||
|
panel.e = e
|
||||||
|
panel.panel(e).catch(e => logger.warn(e))
|
||||||
let uidRes = await fetch('https://avocado.wiki/v1/info/' + uid)
|
let uidRes = await fetch('https://avocado.wiki/v1/info/' + uid)
|
||||||
uidRes = await uidRes.json()
|
uidRes = await uidRes.json()
|
||||||
let { assistAvatar, displayAvatars } = uidRes.playerDetailInfo
|
let { assistAvatar, displayAvatars } = uidRes.playerDetailInfo
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue