星铁mihomo API更改json内容

星铁mihomo API更改json内容

Signed-off-by: lcroof <lcroof@qq.com>
This commit is contained in:
lcroof 2024-02-07 03:26:33 +00:00 committed by Gitee
parent a49e843ed4
commit 31296ca637
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

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