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