更新资源map;本地存在资源时不再获取节点加快响应;fix#91

This commit is contained in:
UCPr 2025-01-23 15:44:33 +08:00
parent 2e8aea4542
commit a62109a6c0
11 changed files with 21 additions and 17 deletions

View file

@ -4,7 +4,7 @@ import _ from 'lodash';
import { rulePrefix } from '../lib/common.js';
import request from '../utils/request.js';
export class Note extends ZZZPlugin {
export class Calendar extends ZZZPlugin {
constructor() {
super({
name: '[ZZZ-Plugin]Calendar',

View file

@ -4,7 +4,7 @@ import _ from 'lodash';
import { rulePrefix } from '../lib/common.js';
import { getCodeMsg } from '../lib/code.js';
export class Note extends ZZZPlugin {
export class Code extends ZZZPlugin {
constructor() {
super({
name: '[ZZZ-Plugin]Code',

View file

@ -4,7 +4,7 @@ import _ from 'lodash';
import { Deadly } from '../model/deadly.js';
import { rulePrefix } from '../lib/common.js';
export class Abyss extends ZZZPlugin {
export class deadly extends ZZZPlugin {
constructor() {
super({
name: '[ZZZ-Plugin]deadly',

View file

@ -4,7 +4,7 @@ import _ from 'lodash';
import manage from './manage/index.js';
import { rulePrefix } from '../lib/common.js';
export class Panel extends ZZZPlugin {
export class Manage extends ZZZPlugin {
constructor() {
super({
name: '[ZZZ-Plugin]Manage',

View file

@ -5,7 +5,7 @@ import _ from 'lodash';
import { rulePrefix } from '../lib/common.js';
import { getMonthly, getMonthlyCollect } from '../lib/monthly.js';
export class Note extends ZZZPlugin {
export class monthly extends ZZZPlugin {
constructor() {
super({
name: '[ZZZ-Plugin]Monthly',

View file

@ -121,7 +121,7 @@ export class Panel extends ZZZPlugin {
retType: 'base64',
});
const res = await this.reply(image);
if (res?.message_id)
if (res?.message_id && data.role_icon)
await redis.set(`ZZZ:PANEL:IMAGE:${res.message_id}`, data.role_icon, {
EX: 3600 * 3,
});

View file

@ -4,7 +4,7 @@ import common from '../../../lib/common/common.js';
import _ from 'lodash';
import { rulePrefix } from '../lib/common.js';
export class Panel extends ZZZPlugin {
export class User extends ZZZPlugin {
constructor() {
super({
name: '[ZZZ-Plugin]User',

View file

@ -31,7 +31,7 @@ const displays = [
},
];
export class Abyss extends ZZZPlugin {
export class Wiki extends ZZZPlugin {
constructor() {
super({
name: '[ZZZ-Plugin]wiki',