✨ feat(好友切磋): 添加defCe下发字段
This commit is contained in:
@@ -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 })
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user