参数:返回元宝消耗参数
This commit is contained in:
@@ -153,7 +153,7 @@ export async function handleCost(roleId: string, sid: string, goods: Array<ItemI
|
||||
let costCoin = coin.reduce((pre, cur) => pre + cur, 0);
|
||||
role = await RoleModel.decreaseGoldAndCoin(roleId, gold, costCoin);
|
||||
pinus.app.get('channelService').pushMessageByUids('onPlayerDataChange', resResult(STATUS.SUCCESS, {
|
||||
gold: role.gold, coin: role.coin
|
||||
gold: role.gold, coin: role.coin, totalCost: role.totalCost
|
||||
}), uids);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user