WIN-2308041133\Administrator 5 ay önce
ebeveyn
işleme
9b96934561
1 değiştirilmiş dosya ile 6 ekleme ve 3 silme
  1. 6 3
      application/api/controller/Pay.php

+ 6 - 3
application/api/controller/Pay.php

@@ -895,13 +895,16 @@ 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']);//判断订单的用户是否有上级以及判断推荐等级)
 
 //                    扣除短剧总版权
                     $shares = Db::name('videolist')->where('id', $data['vid'])->value('share');
-                    $share = $shares - $data['num'];
+//                    $share = $shares - $data['num'];
+                    @file_put_contents("usdt.txt", $shares . "- 总版权数量\r\n", 8);
+                    $share = bcsub($shares, $data['num'], 0);
+                    @file_put_contents("usdt.txt", $share . "- 修改后的总版权数量\r\n", 8);
                     Db::name('videolist')->where('id', $data['vid'])->update(['share' => $share]);
 
                     Db::commit();