宝石
This commit is contained in:
@@ -21,14 +21,14 @@ export class HeroHandler {
|
||||
|
||||
private channelService: ChannelService = this.app.get('channelService');
|
||||
|
||||
public async test(msg: { id: number, count: number, seqId:number, type:number}, session: BackendSession) {
|
||||
public async test(msg: { items:Array<{id: number, count: number, seqId:number, type:number}>}, session: BackendSession) {
|
||||
let roleId: string = session.get('roleId');
|
||||
let roleName: string = session.get('roleName');
|
||||
let sid: string = session.get('sid');
|
||||
|
||||
let {id, count, seqId, type} = msg;
|
||||
let {items} = msg;
|
||||
|
||||
let result = await handleCost(roleId, sid, [{id, count, seqId, type}] );
|
||||
let result = await handleCost(roleId, sid, items );
|
||||
//let result = await addItems(roleId, roleName, sid, [{id, count}] );
|
||||
if(!result) {
|
||||
return resResult(STATUS.BATTLE_CONSUMES_NOT_ENOUGH);
|
||||
|
||||
Reference in New Issue
Block a user