From 7183b63a4d70eaadd7323f341759ef050b15662b Mon Sep 17 00:00:00 2001 From: yoimiya-kokomi <592981798@qq.com> Date: Mon, 4 Apr 2022 06:14:54 +0800 Subject: [PATCH] =?UTF-8?q?#=E8=80=81=E5=A9=86=20=E6=A8=A1=E5=BC=8Freturn?= =?UTF-8?q?=20true=E5=B1=8F=E8=94=BDai?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/character.js | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/apps/character.js b/apps/character.js index 5b3c97d6..8488fd54 100644 --- a/apps/character.js +++ b/apps/character.js @@ -112,16 +112,16 @@ export async function wife(e, { render, User }) { // 如果选择为全部,则从列表中随机选择一个 avatarList = await getAvatarList(e, targetCfg.type, MysApi); let avatar = lodash.sample(avatarList); - return renderAvatar(e, avatar, render, renderType); + return renderAvatar(e, avatar, render, renderType); } else { // 如果指定过,则展示指定角色 - return renderAvatar(e, lodash.sample(wifeList), render, renderType); + return renderAvatar(e, lodash.sample(wifeList), render, renderType); } } else { // 如果未指定过,则从列表中排序并随机选择前5个 avatarList = await getAvatarList(e, targetCfg.type, MysApi); avatar = lodash.sample(avatarList.slice(0, 5)); - return renderAvatar(e, avatar, render, renderType); + return renderAvatar(e, avatar, render, renderType); } break; case "设置": @@ -172,8 +172,7 @@ export async function wife(e, { render, User }) { } break; } - - + return true; } async function getAvatarList(e, type, MysApi) {