mirror of
https://github.com/LLOneBot/LLOneBot.git
synced 2024-11-22 01:56:33 +00:00
fix
This commit is contained in:
parent
da75f59d0d
commit
234167f305
@ -1,5 +1,5 @@
|
|||||||
import { OB11User } from '../../types'
|
|
||||||
import BaseAction from '../BaseAction'
|
import BaseAction from '../BaseAction'
|
||||||
|
import { OB11User } from '../../types'
|
||||||
import { ActionName } from '../types'
|
import { ActionName } from '../types'
|
||||||
import { selfInfo } from '@/common/globalVars'
|
import { selfInfo } from '@/common/globalVars'
|
||||||
|
|
||||||
@ -7,9 +7,13 @@ class GetLoginInfo extends BaseAction<null, OB11User> {
|
|||||||
actionName = ActionName.GetLoginInfo
|
actionName = ActionName.GetLoginInfo
|
||||||
|
|
||||||
protected async _handle(payload: null) {
|
protected async _handle(payload: null) {
|
||||||
|
let nickname = selfInfo.nick
|
||||||
|
try {
|
||||||
|
nickname = await this.ctx.ntUserApi.getSelfNick(true)
|
||||||
|
} catch { }
|
||||||
return {
|
return {
|
||||||
user_id: parseInt(selfInfo.uin),
|
user_id: parseInt(selfInfo.uin),
|
||||||
nickname: await this.ctx.ntUserApi.getSelfNick(true)
|
nickname
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user