feat(好友切磋): 添加defCe下发字段

This commit is contained in:
zhangxk
2023-09-12 16:23:54 +08:00
parent 2b56bee3e9
commit affbaf78df

View File

@@ -9,6 +9,7 @@ import { resResult } from '../../../pubUtils/util';
import { STATUS } from '../../../consts/statusCode';
import { RoleType } from '../../../db/Role';
import { FRIEND_BATTLE_DISPATCH_JSONID } from '../../../consts';
import { getLadderDefCe } from '../../../services/redisService';
export default function (app: Application) {
new HandlerService(app, {});
@@ -53,7 +54,8 @@ export class FriendBattleHandler {
const role = <RoleType>hisLadderData.role;
const title = role?.title || 1;
const combo = hisLadderData.defense.combo || [];
const defCe = await getLadderDefCe(targetRoleId);
return resResult(STATUS.SUCCESS, { title, combo, heroes: result })
return resResult(STATUS.SUCCESS, { title, combo, defCe, heroes: result })
}
}