cyzhao 6 сар өмнө
parent
commit
5d51dd5949

+ 2 - 2
Gameserver/App/process/ShopProc.php

@@ -176,8 +176,8 @@ class ShopProc {
 
     public static function BuyShop_GateGift($type, $typeId, $buyNum) {
         //$gateGift = array();
-        //my_Assert(StlUtil::dictHasProperty(ctx()->gates->GateList, $typeId), ErrCode::active_const_no_err);
-        //my_Assert(!in_array($typeId, ctx()->privateState->gateGiftReceived), ErrCode::user_shop_NotRepeatBuy);
+        my_Assert(StlUtil::dictHasProperty(ctx()->gates->GateList, $typeId), ErrCode::active_const_no_err);
+        my_Assert(!in_array($typeId, ctx()->privateState->gateGiftReceived), ErrCode::user_shop_NotRepeatBuy);
 
         $mo = GameConfig::shop_gategift_getItem($typeId);
         my_Assert($mo != null, ErrCode::err_const_no);