debug:修改3个判断debug的方法的位置
This commit is contained in:
@@ -191,7 +191,7 @@ export class AuctionHandler {
|
||||
const bidRec = lot.bidRoles.find(role => { return role.roleId === roleId });
|
||||
const { gid } = lot;
|
||||
return { ...bidRec, gid, status: auctionBidStatus(roleId, lot) };
|
||||
});
|
||||
}).sort((a,b) => b.time.getTime() - a.time.getTime());
|
||||
return resResult(STATUS.SUCCESS, { bidRecs });
|
||||
}
|
||||
|
||||
@@ -210,7 +210,7 @@ export class AuctionHandler {
|
||||
// const price = lotPrice === 0 ? getBasePrice(gid, count) : lotPrice;
|
||||
const sold = guildBidStatus(lot);
|
||||
return { ...lot, price: lotPrice, sold };
|
||||
});
|
||||
}).sort((a,b) => b.time.getTime() - a.time.getTime());;
|
||||
|
||||
return resResult(STATUS.SUCCESS, { lotRecs });
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user