chore: OBAPI

This commit is contained in:
手瓜一十雪 committed 2024-08-09 16:22:35 +08:00
1 parent d9e016db8b
commit ff29b62398
16 files changed
+28 -165

No files matched your search

+4 -7
View File
@@ -1,17 +1,14 @@
import BaseAction from '../BaseAction';
import { OB11Status } from '../../types';
import { ActionName } from '../types';
import { selfInfo, stat } from '@/core/data';
export default class GetStatus extends BaseAction<any, OB11Status> {
export default class GetStatus extends BaseAction<any, any> {
actionName = ActionName.GetStatus;
protected async _handle(payload: any): Promise<OB11Status> {
protected async _handle(payload: any): Promise<any> {
return {
online: !!selfInfo.online,
online: !!this.CoreContext.selfInfo.online,
good: true,
stat
stat:{}
};
}
}