From 6d1d56062b3e411317c463d81ade2f070282f7ed Mon Sep 17 00:00:00 2001 From: bling-yshs <377178599@qq.com> Date: Wed, 7 Aug 2024 16:57:58 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=BB=85=E4=B8=8D=E5=85=81=E8=AE=B8?= =?UTF-8?q?=E8=8E=B7=E5=8F=96=E9=9D=A2=E6=9D=BF=E5=9B=BE=E5=88=97=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/character/ImgUpload.js | 2 +- config/system/cfg_system.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/character/ImgUpload.js b/apps/character/ImgUpload.js index 58dd24cf..53711e1f 100644 --- a/apps/character/ImgUpload.js +++ b/apps/character/ImgUpload.js @@ -224,7 +224,7 @@ export async function profileImgList (e) { if (!char || !char.name) { return false } - if ([1, 0].includes(Cfg.get('originalPic') * 1)) { + if ([1, 0, 4].includes(Cfg.get('originalPic') * 1)) { e.reply('已禁止获取面板图列表') return true } diff --git a/config/system/cfg_system.js b/config/system/cfg_system.js index 821dc716..584efe71 100644 --- a/config/system/cfg_system.js +++ b/config/system/cfg_system.js @@ -181,8 +181,8 @@ export const cfgSchema = { key: '原图', type: 'num', def: 3, - input: (n) => Math.min(3, Math.max(n * 1 || 0, 0)), - desc: '允许获取原图,0:不允许, 1:仅允许角色图, 2:仅允许面板图, 3:开启' + input: (n) => Math.min(4, Math.max(n * 1 || 0, 0)), + desc: '允许获取原图,0:不允许, 1:仅允许角色图, 2:仅允许面板图, 3:开启, 4:仅不允许获取面板图列表' }, commaGroup: { title: '数字逗号分组',