WIN-2308041133\Administrator 4 months ago
parent
commit
d310b5eb00
1 changed files with 2 additions and 2 deletions
  1. 2 2
      app/common/repositories/user/UserRepository.php

+ 2 - 2
app/common/repositories/user/UserRepository.php

@@ -2769,7 +2769,7 @@ class UserRepository extends BaseRepository
 //            'mark' => '用户获得分红份额' . $info['award_range'] . '元,冻结对应奖金',
 //            'balance' => $freeze_brokerage
 //        ]);
-        User::where('uid', $uid)->update(['freeze_brokerage' => $freeze_brokerage, 'award_integral' => $after_integral]);
+        User::where('uid', $uid)->update(['freeze_brokerage' => 0, 'award_integral' => $after_integral]);
         app()->make(UserRepository::class)->extractIntegral($uid);  //冻结奖金转为分红积分后再判断
     }
 
@@ -2815,7 +2815,7 @@ class UserRepository extends BaseRepository
                     $this->addFrozenBrokerage($uid, $award);  //冻结奖金
                     $all_price = bcsub($all_price, $award, 2);  //奖金减冻结奖金
                 }
-                @file_put_contents('quanju.txt', $award . "-扣除金额后提现的金额\r\n", 8);
+                @file_put_contents('quanju.txt', $all_price . "-扣除金额后提现的金额\r\n", 8);
                 //用户获得$all_price的佣金
                 $userBillRepository->incBill($uid, 'brokerage', 'extract_award', [
                     'link_id' => 0,