|
@@ -133,8 +133,10 @@ 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(!in_array($typeId, ctx()->privateState->gateGiftReceived), ErrCode::user_shop_NotRepeatBuy);
|
|
|
|
|
|
+
|
|
|
$mo = GameConfig::shop_gategift_getItem($typeId);
|
|
|
my_Assert($mo != null, ErrCode::err_const_no);
|
|
|
StoreProc::AddMultiItemInStore($mo->reward);
|