|
@@ -37,6 +37,7 @@ class ShopProc {
|
|
|
$user = ctx();
|
|
|
|
|
|
$equip = array();
|
|
|
+ $gateGift = array();
|
|
|
switch ($type) {
|
|
|
case EnumShopGift::GateGift_Shop://章节礼包
|
|
|
my_Assert(!in_array($typeId, ctx()->privateState->gateGiftReceived), ErrCode::user_shop_NotRepeatBuy);
|
|
@@ -267,7 +268,7 @@ class ShopProc {
|
|
|
|
|
|
break;
|
|
|
case EnumShopGift::Cash_Shop://商城-钻石
|
|
|
- $mo = GameConfig::shop_cash_getItem($typeId);
|
|
|
+ $mo = GameConfig::shop_cash_getItem($typeId);
|
|
|
my_Assert($mo != null, ErrCode::err_const_no);
|
|
|
|
|
|
$tag = false;
|
|
@@ -313,6 +314,7 @@ class ShopProc {
|
|
|
ctx($user);
|
|
|
UserProc::updateUserInfo();
|
|
|
return Resp::ok(array(
|
|
|
+ 'gateGift'=>$gateGift,
|
|
|
'equip'=>$equip,
|
|
|
'cash'=>$user->baseInfo->cash,
|
|
|
'gold'=>$user->baseInfo->gold,
|