浏览代码

商城章节礼包

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