feat: 仅不允许获取面板图列表

This commit is contained in:
bling-yshs 2024-08-07 16:57:58 +08:00 committed by 时雨◎星空
parent 09fddf686d
commit 6d1d56062b
2 changed files with 3 additions and 3 deletions

View File

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

View File

@ -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: '数字逗号分组',