战力:修改套装计算方式
This commit is contained in:
@@ -305,8 +305,8 @@ export default class GMUsers extends Service {
|
||||
}
|
||||
let list = heroes.map(cur => {
|
||||
let roleCe = roleMap.get(cur.roleId);
|
||||
let attr = roleCe.attributes.filter(ccur => ccur.hid == cur.hid);
|
||||
return {...cur, calculatedAttr: attr, env: ctx.app.config.realEnv}
|
||||
let obj = roleCe.attributes.find(ccur => ccur.hid == cur.hid);
|
||||
return {...cur, calculatedAttr: obj.attrs, env: ctx.app.config.realEnv}
|
||||
})
|
||||
|
||||
return ctx.service.utils.resResult(STATUS.SUCCESS, { list, total })
|
||||
|
||||
Reference in New Issue
Block a user