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