🐞 fix(gvg): 修复消耗道具的推送
This commit is contained in:
@@ -71,7 +71,9 @@ export async function handleGVGCost(roleId: string, leagueCode: string, sid: str
|
||||
if(!itemResult) return false;
|
||||
|
||||
const decreaseResult = await GVGUserItemModel.decreaseItem(configId, leagueCode, roleId, leagueItems);
|
||||
return decreaseResult;
|
||||
const pushGoods = decreaseResult.map(item => ({ id: item.id, count: item.count, expireTime: item.expireTime }));
|
||||
if(pushGoods.length > 0) await sendMessageToUserWithSuc(roleId, PUSH_ROUTE.LEAGUE_ITEM_UPDATE, { items: pushGoods }, sid);
|
||||
return true;
|
||||
}
|
||||
|
||||
export function getProduceCoinCnt(items: RewardInter[]) {
|
||||
|
||||
Reference in New Issue
Block a user