mirror of
https://github.com/ZZZure/ZZZ-Plugin.git
synced 2025-12-16 13:17:32 +00:00
feat: 月报统计(总);查询的月报数据自动保存
This commit is contained in:
parent
9f8d5dc1f6
commit
dcf04636c2
12 changed files with 739 additions and 62 deletions
|
|
@ -1,5 +1,9 @@
|
|||
import { ZZZPlugin } from '../lib/plugin.js';
|
||||
import { getPanelList, refreshPanel, getPanel } from '../lib/avatar.js';
|
||||
import {
|
||||
getPanelList,
|
||||
refreshPanel as refreshPanelFunction,
|
||||
getPanel,
|
||||
} from '../lib/avatar.js';
|
||||
import settings from '../lib/settings.js';
|
||||
import _ from 'lodash';
|
||||
import { rulePrefix } from '../lib/common.js';
|
||||
|
|
@ -53,7 +57,7 @@ export class Panel extends ZZZPlugin {
|
|||
await redis.set(`ZZZ:PANEL:${uid}:LASTTIME`, Date.now());
|
||||
await this.reply('正在刷新面板列表,请稍候...');
|
||||
await this.getPlayerInfo();
|
||||
const result = await refreshPanel(api, uid).catch(e => {
|
||||
const result = await refreshPanelFunction(api).catch(e => {
|
||||
this.reply(e.message);
|
||||
throw e;
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue