From 31296ca6370b7e7d1d386ec1d791588090b35cf8 Mon Sep 17 00:00:00 2001 From: lcroof Date: Wed, 7 Feb 2024 03:26:33 +0000 Subject: [PATCH] =?UTF-8?q?=E6=98=9F=E9=93=81mihomo=20API=E6=9B=B4?= =?UTF-8?q?=E6=94=B9json=E5=86=85=E5=AE=B9=20=E6=98=9F=E9=93=81mihomo=20AP?= =?UTF-8?q?I=E6=9B=B4=E6=94=B9json=E5=86=85=E5=AE=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: lcroof --- models/serv/api/HomoApi.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/models/serv/api/HomoApi.js b/models/serv/api/HomoApi.js index ff27faab..d82067c6 100644 --- a/models/serv/api/HomoApi.js +++ b/models/serv/api/HomoApi.js @@ -20,11 +20,10 @@ export default { return req.err('error', 60) } let ds = data.detailInfo - let ac = ds.assistAvatarDetail let avatars = {} - if (ac && !lodash.isEmpty(ac)) { - avatars[ac.AvatarID] = ac - } + lodash.forEach(ds.assistAvatarList, (ds) => { + avatars[ds.avatarId] = ds + }) lodash.forEach(ds.avatarDetailList, (ds) => { avatars[ds.avatarId] = ds })