武将:合成战力

This commit is contained in:
luying
2021-09-02 21:04:27 +08:00
parent 5765db46fd
commit ca0efdbcb8
2 changed files with 7 additions and 1 deletions

View File

@@ -99,6 +99,8 @@ export class HeroHandler {
// 武将碎片合成
public async compose(msg: { hid: number }, session: BackendSession) {
try {
let roleId: string = session.get('roleId');
let roleName: string = session.get('roleName');
let sid: string = session.get('sid');
@@ -122,6 +124,10 @@ export class HeroHandler {
pushComposeOrangeHero(roleId, roleName, serverId, heroes[0]);
return resResult(STATUS.SUCCESS, { curHero: heroes[0] });
}catch(e) {
return resResult(STATUS.WRONG_PARMS, {err: e.stack})
}
}
// 武将升级