feat: forward single msg
feat: statistic sent receive msg count by api get_status
This commit is contained in:
1 parent
3e4eb926f9
commit
8bff46f466
7 files changed
+74
-8
No files matched your search
@@ -1,7 +1,7 @@
|
||||
import BaseAction from '../BaseAction';
|
||||
import { OB11Status } from '../../types';
|
||||
import { ActionName } from '../types';
|
||||
import { selfInfo } from '@/core/data';
|
||||
import { selfInfo, stat } from '@/core/data';
|
||||
|
||||
|
||||
export default class GetStatus extends BaseAction<any, OB11Status> {
|
||||
@@ -10,7 +10,8 @@ export default class GetStatus extends BaseAction<any, OB11Status> {
|
||||
protected async _handle(payload: any): Promise<OB11Status> {
|
||||
return {
|
||||
online: !!selfInfo.online,
|
||||
good: true
|
||||
good: true,
|
||||
stat
|
||||
};
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user