装备:分解碎片结果合并

This commit is contained in:
luying
2021-08-10 11:17:33 +08:00
parent f979c5e9b3
commit e71d181e0e

View File

@@ -586,7 +586,7 @@ export class EquipHandler {
let costResult = await handleCost(roleId, sid, originalPiece);
if(!costResult) return resResult(STATUS.BATTLE_CONSUMES_NOT_ENOUGH);
let result = await addItems(roleId, roleName, sid, goods);
return resResult(STATUS.SUCCESS, { goods: result });
return resResult(STATUS.SUCCESS, { goods: combineItems(result) });
}
//穿戴或卸载装备 1-穿上装备(包括替换) 2-脱下装备