!74 星铁mihomo API更改json内容

Merge pull request !74 from lcroof/N/A
This commit is contained in:
Kokomi 2024-02-18 19:33:19 +00:00 committed by Gitee
commit 831f7f365c
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) return req.err('error', 60)
} }
let ds = data.detailInfo let ds = data.detailInfo
let ac = ds.assistAvatarDetail
let avatars = {} let avatars = {}
if (ac && !lodash.isEmpty(ac)) { lodash.forEach(ds.assistAvatarList, (ds) => {
avatars[ac.AvatarID] = ac avatars[ds.avatarId] = ds
} })
lodash.forEach(ds.avatarDetailList, (ds) => { lodash.forEach(ds.avatarDetailList, (ds) => {
avatars[ds.avatarId] = ds avatars[ds.avatarId] = ds
}) })