diff --git a/apps/calendar.js b/apps/calendar.js index e693fd7..5793cf6 100644 --- a/apps/calendar.js +++ b/apps/calendar.js @@ -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', diff --git a/apps/code.js b/apps/code.js index ef4973b..36dd20f 100644 --- a/apps/code.js +++ b/apps/code.js @@ -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', diff --git a/apps/deadly.js b/apps/deadly.js index fd39496..62d1bde 100644 --- a/apps/deadly.js +++ b/apps/deadly.js @@ -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', diff --git a/apps/manage.js b/apps/manage.js index 411c5b8..4cd078a 100644 --- a/apps/manage.js +++ b/apps/manage.js @@ -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', diff --git a/apps/monthly.js b/apps/monthly.js index 4e92cb8..671a5ae 100644 --- a/apps/monthly.js +++ b/apps/monthly.js @@ -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', diff --git a/apps/panel.js b/apps/panel.js index ed4d3c7..ac0044d 100644 --- a/apps/panel.js +++ b/apps/panel.js @@ -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, }); diff --git a/apps/user.js b/apps/user.js index bc80252..bb32b7d 100644 --- a/apps/user.js +++ b/apps/user.js @@ -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', diff --git a/apps/wiki.js b/apps/wiki.js index c08ade7..781a4cb 100644 --- a/apps/wiki.js +++ b/apps/wiki.js @@ -31,7 +31,7 @@ const displays = [ }, ]; -export class Abyss extends ZZZPlugin { +export class Wiki extends ZZZPlugin { constructor() { super({ name: '[ZZZ-Plugin]wiki', diff --git a/lib/download/download.js b/lib/download/download.js index 1b051ae..ee5e0c2 100644 --- a/lib/download/download.js +++ b/lib/download/download.js @@ -37,6 +37,9 @@ export const downloadResourceImage = async ( ) => { localBase = LocalURI[localBase]; const finalPath = path.join(localBase, filename); + if (fs.existsSync(finalPath) && fs.statSync(finalPath).size > 0) { + return finalPath; + } const url = await getResourceRemotePath(remoteLabel, filename); let result = await checkFile(url, finalPath); if (!result && !!replaceFilename) { diff --git a/resources/map/PartnerId2Data.json b/resources/map/PartnerId2Data.json index 99f43c9..c99b28a 100644 --- a/resources/map/PartnerId2Data.json +++ b/resources/map/PartnerId2Data.json @@ -42,9 +42,9 @@ "en_name": "Grace" }, "1321": { - "sprite_id": "", + "sprite_id": "37", "name": "伊芙琳", - "full_name": "伊芙琳", + "full_name": "伊芙琳 · 舒瓦利耶", "en_name": "Evelyn" }, "2011": { @@ -104,7 +104,7 @@ "1161": { "sprite_id": "26", "name": "莱特", - "full_name": "...", + "full_name": "莱特", "en_name": "Lighter" }, "1111": { @@ -138,10 +138,10 @@ "en_name": "Rina" }, "1311": { - "sprite_id": "", + "sprite_id": "36", "name": "耀嘉音", "full_name": "耀嘉音", - "en_name": "Avatar_Female_Size03_Astra_En" + "en_name": "Astra" }, "1151": { "sprite_id": "27", @@ -158,7 +158,7 @@ "1221": { "sprite_id": "31", "name": "柳", - "full_name": "...", + "full_name": "月城柳", "en_name": "Yanagi" }, "1271": { @@ -179,4 +179,4 @@ "full_name": "艾莲·乔", "en_name": "Ellen" } -} +} \ No newline at end of file diff --git a/resources/map/WeaponId2Sprite.json b/resources/map/WeaponId2Sprite.json index 5f00a2f..5bb2c55 100644 --- a/resources/map/WeaponId2Sprite.json +++ b/resources/map/WeaponId2Sprite.json @@ -54,5 +54,6 @@ "14122": "Weapon_S_1221", "14124": "Weapon_S_1241", "14125": "Weapon_S_1251", - "14126": "Weapon_S_1261" -} + "14126": "Weapon_S_1261", + "14131": "Weapon_S_1311" +} \ No newline at end of file