Explorar o código

商城章节礼包

cyzhao hai 8 meses
pai
achega
c61331b67e
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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) {
         //$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);