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

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

@@ -2680,7 +2680,7 @@ class UserRepository extends BaseRepository
     public function checkAward($uid)
     {
         $info = $this->dao->get($uid);
-        if ($info['award_range'] > 0) {
+//        if ($info['award_range'] > 0) {
             $price = $this->awardIntegralPrice();
             @file_put_contents('quanju.txt', json_encode($price) . "-积分价格2\r\n", 8);
             if ($price['price'] > 0) {
@@ -2692,10 +2692,10 @@ class UserRepository extends BaseRepository
                     $this->extractIntegral($uid);
                 }
             }
-        } else {
-            if ($info['award_integral'] > 0)
-                $this->dao->update($uid, ['award_integral' => 0]);
-        }
+//        } else {
+//            if ($info['award_integral'] > 0)
+//                $this->dao->update($uid, ['award_integral' => 0]);
+//        }
     }
 
 //    添加冻结奖金
@@ -2813,7 +2813,7 @@ class UserRepository extends BaseRepository
                     @file_put_contents('quanju.txt', $all_price . "-冻结总金额\r\n", 8);
                     @file_put_contents('quanju.txt', $info['award_range'] . "-冻结总份额\r\n", 8);
                     $award = bcsub($all_price, $info['award_range'], 2);
-                    @file_put_contents('quanju.txt', $award . "-总金额扣除份额就是还要冻结的金额\r\n", 8);
+
                     $this->addFrozenBrokerage($uid, $award);  //冻结奖金
                     $all_price = bcsub($all_price, $award, 2);  //奖金减冻结奖金
                 }elseif($all_price < $info['award_range']&&$num ==0){  //达不到自动提现的份额,而且不是手动提现