debug:修改3个判断debug的方法的位置

This commit is contained in:
luying
2022-05-23 11:22:43 +08:00
parent 93ab2c7bbc
commit 4110ba242e
11 changed files with 30 additions and 33 deletions

View File

@@ -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 });
}