Quellcode durchsuchen

商城章节礼包

cyzhao vor 8 Monaten
Ursprung
Commit
c61331b67e
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  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);