Просмотр исходного кода

会员专区商品购买优化

橙汁先生 1 год назад
Родитель
Сommit
9bee0947ba

+ 20 - 8
app/common/repositories/store/order/StoreOrderRepository.php

@@ -2093,16 +2093,18 @@ class StoreOrderRepository extends BaseRepository
2093 2093
 
2094 2094
             if($store_product_datas['mer_id'] == 496){
2095 2095
 
2096
-                $yanglao = round($num_yl * 0.035, 2);
2096
+                $yanglao = round($num_yl * 0.035, 2);//给预下订单中的商品展示 养老金 显示作用
2097
+                $cartInfo['list'][$_k]['yanglao'] =  $yanglao;
2097 2098
                 $pv=$num_yl;
2098 2099
                 //$v['vr']=$v['price'];
2099 2100
                 //1:为会员专区,
2100 2101
 
2101 2102
 
2102
-                $fzone_paytype= [
2103
+                $cartInfo['list'][$_k]['fzone_paytype']= [
2103 2104
 
2104
-                    ['type'=>'a1','price'=>$orderpri,'other'=>0],
2105
-                    ['type'=>'a2','price'=>$orderpri,'other'=>0],
2105
+                    ['type'=>'a1','price'=>$orderpri,'other'=>0,'note'=>"VR"],//VR支付
2106
+                    ['type'=>'a2','price'=>$orderpri,'other'=>0,'note'=>"现金"],//现金支付
2107
+                    // ['type'=>'a3','price'=>$orderpri,'other'=>0,'note'=>"现金+VR"],//现金支付
2106 2108
                 ];
2107 2109
 
2108 2110
 
@@ -2154,8 +2156,8 @@ class StoreOrderRepository extends BaseRepository
2154 2156
 
2155 2157
                         ['type'=>'b1','price'=>$jcvr,'other'=>$jcjf,'note'=>"VR+积分"],
2156 2158
                         ['type'=>'b2','price'=>$jcprice,'other'=>$jcjf1,"note"=>"现金+积分"],
2157
-                        ['type'=>'b3','price'=>$jcvr1,'other'=>$jcjd,"note"=>"VR+京豆"],
2158
-                        ['type'=>'b4','price'=>$jcvr1,'other'=>$jcjd,"note"=>"现金+京豆"],
2159
+                        // ['type'=>'b3','price'=>$jcvr1,'other'=>$jcjd,"note"=>"VR+京豆"],
2160
+                        //['type'=>'b4','price'=>$jcvr1,'other'=>$jcjd,"note"=>"现金+京豆"],
2159 2161
                         ['type'=>'b5','price'=>$orderpri,'other'=>0,"note"=>"VR"],
2160 2162
                         ['type'=>'b6','price'=>$orderpri,'other'=>0,"note"=>"现金"],
2161 2163
 
@@ -9004,7 +9006,7 @@ class StoreOrderRepository extends BaseRepository
9004 9006
         $pv = 0; //待分配的PV
9005 9007
 
9006 9008
 
9007
-        //var_dump($store_product_data['concession_pri']);return;            
9009
+        //var_dump($store_product_data['concession_pri']);return;
9008 9010
         //精彩生活
9009 9011
         if($store_order_data['mer_id'] == 439){
9010 9012
 
@@ -9230,12 +9232,22 @@ class StoreOrderRepository extends BaseRepository
9230 9232
                 $gx_jf = 7000;
9231 9233
                 $yj1 = 1000;
9232 9234
                 $le_yw_amount = 3000;
9235
+            }else if($store_product_data['price'] == 9440){
9236
+                $pv = 8000;
9237
+                $gx_jf = 5600;
9238
+                $yj1 = 800;
9239
+                $le_yw_amount = 2400;
9240
+            }else if($store_product_data['price'] == 2360){
9241
+                $pv = 2000;
9242
+                $gx_jf = 1400;
9243
+                $yj1 = 200;
9244
+                $le_yw_amount = 600;
9233 9245
             }
9234 9246
 
9235 9247
             $ylj_pri = round($pv * 0.035,2);
9236 9248
             //$pv = round($pv * 0.35,2);
9237 9249
 
9238
-            //分配养老金给消费者 
9250
+            //分配养老金给消费者
9239 9251
             //普通用户获取贡献值和pv3.5%养老金和积分
9240 9252
             $ylj_amount_mine = $user_data['annuity'] + $ylj_pri;
9241 9253
             $gxz_amount_mine = $user_data['contribute'] + $gx_jf;

+ 10 - 0
app/controller/api/Notify.php

@@ -353,6 +353,16 @@ class Notify
353 353
                                     $gx_jf = 7000;
354 354
                                     $yj1 = 1000;
355 355
                                     $le_yw_amount = 3000;
356
+                                }else if($store_product_data['price'] == 9440){
357
+                                    $pv = 8000;
358
+                                    $gx_jf = 5600;
359
+                                    $yj1 = 800;
360
+                                    $le_yw_amount = 2400;
361
+                                }else if($store_product_data['price'] == 2360){
362
+                                    $pv = 2000;
363
+                                    $gx_jf = 1400;
364
+                                    $yj1 = 200;
365
+                                    $le_yw_amount = 600;
356 366
                                 }
357 367
 
358 368
                                 $ylj_pri = round($pv * 0.035,2);