|
|
@@ -2821,15 +2821,18 @@ class UserRepository extends BaseRepository
|
|
|
}
|
|
|
@file_put_contents('quanju.txt', $all_price . "-扣除金额后提现的金额\r\n", 8);
|
|
|
|
|
|
- //用户获得$all_price的佣金
|
|
|
- $userBillRepository->incBill($uid, 'brokerage', 'extract_award', [
|
|
|
- 'link_id' => 0,
|
|
|
- 'status' => 1,
|
|
|
- 'title' => '提取分红积分',
|
|
|
- 'number' => $all_price,
|
|
|
- 'mark' => $info['nickname'] . '提取' . floatval($num) . '分红积分为' . floatval($all_price) . '奖金(分红积分价格:' . $price['price'] . ')',
|
|
|
- 'balance' => bcadd($info['brokerage_price'], $all_price, 2)
|
|
|
- ]);
|
|
|
+ if ($all_price>0){
|
|
|
+ //用户获得$all_price的佣金
|
|
|
+ $userBillRepository->incBill($uid, 'brokerage', 'extract_award', [
|
|
|
+ 'link_id' => 0,
|
|
|
+ 'status' => 1,
|
|
|
+ 'title' => '提取分红积分',
|
|
|
+ 'number' => $all_price,
|
|
|
+ 'mark' => $info['nickname'] . '提取' . floatval($num) . '分红积分为' . floatval($all_price) . '奖金(分红积分价格:' . $price['price'] . ')',
|
|
|
+ 'balance' => bcadd($info['brokerage_price'], $all_price, 2)
|
|
|
+ ]);
|
|
|
+ }
|
|
|
+
|
|
|
$userRepository = app()->make(UserRepository::class);
|
|
|
$userRepository->incBrokerage($uid, $all_price);
|
|
|
$userRepository->incField($uid, 'brokerage_price', $all_price);
|