校验:count不应为负数的校验
This commit is contained in:
@@ -190,6 +190,7 @@ export class AuctionHandler {
|
||||
}
|
||||
|
||||
async offerRecs(msg: { count: number }, session: BackendSession) {
|
||||
if( msg.count < 0) return resResult(STATUS.WRONG_PARMS);
|
||||
const roleId = session.get('roleId');
|
||||
const serverId = session.get('serverId');
|
||||
const lotsData = await LotModel.recentBidLots(serverId, roleId, msg.count);
|
||||
@@ -202,6 +203,7 @@ export class AuctionHandler {
|
||||
}
|
||||
|
||||
async guildLotRecs(msg: { count: number }, session: BackendSession) {
|
||||
if( msg.count < 0) return resResult(STATUS.WRONG_PARMS);
|
||||
const guildCode = session.get('guildCode');
|
||||
const dividends = await DividendModel.findDividendsByGuild(guildCode, msg.count);
|
||||
let lotsData = [];
|
||||
|
||||
Reference in New Issue
Block a user