feat: 月报统计(总);查询的月报数据自动保存

This commit is contained in:
bietiaop 2024-10-04 11:23:31 +08:00
parent 9f8d5dc1f6
commit dcf04636c2
12 changed files with 739 additions and 62 deletions

View file

@ -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;
});