WIN-2308041133\Administrator 5 tháng trước cách đây
mục cha
commit
b1db6243d6
1 tập tin đã thay đổi với 7 bổ sung7 xóa
  1. 7 7
      application/api/controller/Pay.php

+ 7 - 7
application/api/controller/Pay.php

@@ -675,7 +675,7 @@ class Pay extends Api
 //            $this->error(__('金额不对'));
 //        }
 //        $price = input('price');
-        $price =  Db::name('videolist')->where('id', input('vid'))->value('sharesprice');;
+        $price =  Db::name('videolist')->where('id', $vid)->value('sharesprice');;
 //        $pricebuy = input('pricebuy');
 //            if(input('lx')==2){
 //                $price=input('priced');
@@ -686,12 +686,12 @@ class Pay extends Api
 
 // 计算三年后的时间戳
         $threeYearsLater = strtotime('+3 years', $now);
-        $vname = Db::name('videolist')->where('id', input('vid'))->value('name');
+        $vname = Db::name('videolist')->where('id', $vid)->value('name');
         $total_price = $price * $num;
         $up = [
             'type' => 1,
-            'uid' => input('uid'),
-            'vid' => input('vid'),
+            'uid' => $uid,
+            'vid' => $vid,
             'vname' => $vname,
             'num' => input('num'),
             'price' => $price,
@@ -725,7 +725,7 @@ class Pay extends Api
             $this->allpay($amount, $subject, $body, $number, $notify_url);
 
         } else if ($data['paytype'] == '余额') {
-            $this->shareyuepay($amount, input('uid'), $id);
+            $this->shareyuepay($amount, $uid, $id);
         } else if ($data['paytype'] == '微信') {
             $wxlx = input('wxlx');
             if ($wxlx == 'wxxcx') {
@@ -895,8 +895,8 @@ class Pay extends Api
                     }
 
                     $this->share_record($id);//添加贡献值记录
-//                    $this->yongjin($id, $user_id, $money, '级消费佣金结算');//佣金结算
-//                    $this->dailiyongjin($id, $data['vid'], 0, $user_id, $money, '佣金结算');//后台代理佣金结算
+                    $this->yongjin($id, $user_id, $money, '级消费佣金结算');//佣金结算
+                    $this->dailiyongjin($id, $data['vid'], 0, $user_id, $money, '佣金结算');//后台代理佣金结算
                     $this->grade_sell($data['out_trade_no']);//判断订单的用户是否有上级以及判断推荐等级)
 
 //                    扣除短剧总版权