mirror of
https://github.com/ZZZure/ZZZ-Plugin.git
synced 2025-12-16 13:17:32 +00:00
docs: 更新help以及下载资源
This commit is contained in:
parent
ab99174460
commit
cc811178cb
2 changed files with 26 additions and 0 deletions
|
|
@ -8,6 +8,7 @@ import settings from '../lib/settings.js';
|
|||
import fs from 'fs';
|
||||
import {
|
||||
getRoleImage,
|
||||
getSmallSquareAvatar,
|
||||
getSquareAvatar,
|
||||
getSuitImage,
|
||||
getWeaponImage,
|
||||
|
|
@ -52,6 +53,11 @@ export class Panel extends ZZZPlugin {
|
|||
failed: 0,
|
||||
total: charIDs.length,
|
||||
},
|
||||
charSmallSquare: {
|
||||
success: 0,
|
||||
failed: 0,
|
||||
total: charIDs.length,
|
||||
},
|
||||
charSquare: {
|
||||
success: 0,
|
||||
failed: 0,
|
||||
|
|
@ -79,6 +85,13 @@ export class Panel extends ZZZPlugin {
|
|||
logger.error('getSquareAvatar', id, error);
|
||||
result.charSquare.failed++;
|
||||
}
|
||||
try {
|
||||
await getSmallSquareAvatar(id);
|
||||
result.charSmallSquare.success++;
|
||||
} catch (error) {
|
||||
logger.error('getSmallSquareAvatar', id, error);
|
||||
result.charSmallSquare.failed++;
|
||||
}
|
||||
try {
|
||||
await getRoleImage(id);
|
||||
result.char.success++;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue