玩家获取资料时, 将可用英雄返回给战斗服

This commit is contained in:
zhl 2021-02-04 18:43:55 +08:00
parent 8a740be4de
commit 7643f33b58

View File

@ -56,7 +56,8 @@ export default class AccountController extends BaseController {
accountid: account._id,
nickname: account.nickname,
avatar: account.avatar,
score: account.season_score
score: account.season_score,
heros: [...account.heros.keys()]
}
}
@ -72,6 +73,9 @@ export default class AccountController extends BaseController {
if (gameing) {
continue
}
if (!datas[i].startsWith(BaseConst.ROBOT_PREFIX)) {
continue
}
if (!accountSet.has(datas[i]) ) {
accountid = datas[i]
targetScore = datas[i + 1] | 0