参数:返回元宝消耗参数

This commit is contained in:
luying
2021-11-17 11:24:32 +08:00
parent 4b39a1c951
commit 9eefcfaeeb
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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);
}