|
@@ -91,6 +91,14 @@ class PayProc {
|
|
|
$shopdata->daliySpecialPackages[] = $typeId;
|
|
|
req()->userInfo->game->shopdata = $shopdata;
|
|
|
break;
|
|
|
+ case Enum_Recharge::RechargeRebate://充值返利
|
|
|
+ $mo = GameConfig::rechargeRebate_getItem($typeId);
|
|
|
+ my_Assert($mo != null, ErrCode::err_const_no);
|
|
|
+ my_Assert($user->baseInfo->charge_amt >= $mo->rmb, ErrCode::shop_RechargeRebateRmbNotEnough);
|
|
|
+ my_Assert(!in_array($typeId, $user->shopdata->rechargeRebateRewardsList) , ErrCode::shop_RechargeRebateRewardNotRepeat);
|
|
|
+
|
|
|
+ StoreProc::AddMultiItemInStore($mo->rewards);
|
|
|
+ break;
|
|
|
default:
|
|
|
break;
|
|
|
}
|
|
@@ -141,7 +149,7 @@ class PayProc {
|
|
|
}
|
|
|
$user->base()->Add_Cash($cash);
|
|
|
}
|
|
|
- elseif ($order->product_id >= 801001 && $order->product_id <= 899999) {//每日特惠
|
|
|
+ elseif ($order->product_id >= 801001 && $order->product_id <= 801999) {//每日特惠
|
|
|
$mo = GameConfig::shop_limit_getItem($order->product_id);
|
|
|
if($mo == null){
|
|
|
$list = GameConfig::shop_limit_type_getItemArray(Enum_Recharge::DaliySpecialPackages);
|
|
@@ -155,8 +163,15 @@ class PayProc {
|
|
|
StoreProc::AddMultiItemInStore($mo->reward);
|
|
|
$user->shopdata->daliySpecialPackages[] = $mo->typeId;
|
|
|
}
|
|
|
- }
|
|
|
- elseif ($order->product_id >= 901001 && $order->product_id <= 999999) {//月卡
|
|
|
+ } elseif ($order->product_id >= 805001 && $order->product_id <= 805999) {//限时
|
|
|
+ $mo = GameConfig::shop_limit_getItem($order->product_id);
|
|
|
+ my_Assert($mo, ErrCode::err_const_no);
|
|
|
+ my_Assert(!in_array($order->product_id, $user->shopdata->limitTsActiveRewardsList), ErrCode::err_const_no);
|
|
|
+
|
|
|
+ $user->shopdata->limitTsActiveRewardsList[] = $mo->typeId;
|
|
|
+ StoreProc::AddMultiItemInStore($mo->reward);//领取奖励
|
|
|
+
|
|
|
+ } elseif ($order->product_id >= 901001 && $order->product_id <= 999999) {//月卡
|
|
|
$shopdata = new Info_UserShop(req()->userInfo->game->shopdata);
|
|
|
$packageCfg = GameConfig::shop_monthVIP_getItem($packageId);
|
|
|
my_Assert(null != $packageCfg, ErrCode::err_const_no);
|