소스 검색

商城章节礼包

cyzhao 8 달 전
부모
커밋
c61331b67e
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      Gameserver/App/process/ShopProc.php

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

@@ -133,7 +133,7 @@ class ShopProc {
 
 
     public static function BuyShop_GateGift($type, $typeId, $buyNum) {
     public static function BuyShop_GateGift($type, $typeId, $buyNum) {
         //$gateGift = array();
         //$gateGift = array();
-        my_Assert(in_array($typeId, ctx()->gates->GateList), ErrCode::active_const_no_err);
+        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(!in_array($typeId, ctx()->privateState->gateGiftReceived), ErrCode::user_shop_NotRepeatBuy);