|
|
@@ -2700,6 +2700,9 @@ class UserRepository extends BaseRepository
|
|
|
// 添加冻结奖金
|
|
|
public function addFrozenBrokerage($uid, $num)
|
|
|
{
|
|
|
+ if ($num>0){
|
|
|
+ return true;
|
|
|
+ }
|
|
|
$info = $this->dao->get($uid);
|
|
|
$after_brokerage = bcadd($info['brokerage_price'], $num, 2);
|
|
|
$userBillRepository = app()->make(UserBillRepository::class);
|
|
|
@@ -2786,7 +2789,6 @@ class UserRepository extends BaseRepository
|
|
|
}
|
|
|
// 可提现奖金和份额
|
|
|
$award = bcsub($all_price, $info['award_range'], 2);
|
|
|
-// $all_price = $info['award_range'];
|
|
|
$this->addFrozenBrokerage($uid, $award); //冻结奖金
|
|
|
|
|
|
//用户获得$all_price的佣金
|