mirror of
https://github.com/ikechan8370/chatgpt-plugin.git
synced 2025-12-17 22:07:10 +00:00
fix: try
This commit is contained in:
parent
bcb19db162
commit
3427d23054
1 changed files with 3 additions and 3 deletions
|
|
@ -32,11 +32,11 @@ 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}`)
|
||||||
let panel = new Panel(e)
|
e.msg = '#sr面板' + uid
|
||||||
panel.e = e
|
|
||||||
e.msg = '*面板' + uid
|
|
||||||
e.user_id = qq
|
e.user_id = qq
|
||||||
e.isSr = true
|
e.isSr = true
|
||||||
|
let panel = new Panel(e)
|
||||||
|
panel.e = e
|
||||||
panel.panel(e).catch(e => logger.warn(e))
|
panel.panel(e).catch(e => logger.warn(e))
|
||||||
if (!uid) {
|
if (!uid) {
|
||||||
return '用户没有绑定uid,无法查询。可以让用户主动提供uid进行查询'
|
return '用户没有绑定uid,无法查询。可以让用户主动提供uid进行查询'
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue