校验:count不应为负数的校验
This commit is contained in:
@@ -42,6 +42,7 @@ export class ShopHandler {
|
||||
let serverId = session.get('serverId');
|
||||
|
||||
let { shopItemId, count } = msg;
|
||||
if( count < 0) return resResult(STATUS.WRONG_PARMS);
|
||||
|
||||
let dicShopItem = gameData.shopItem.get(shopItemId);
|
||||
if(!dicShopItem) return resResult(STATUS.DIC_DATA_NOT_FOUND);
|
||||
|
||||
Reference in New Issue
Block a user