WIN-2308041133\Administrator 4 months ago
parent
commit
0e32d0a43d
1 changed files with 2 additions and 1 deletions
  1. 2 1
      app/common/model/user/AwardLake.php

+ 2 - 1
app/common/model/user/AwardLake.php

@@ -130,6 +130,7 @@ class AwardLake extends BaseModel
         $real_send = 0;
         $price = app()->make(AwardIntegralPriceRepository::class)->awardIntegralPrice();  //分红积分价格
             @file_put_contents('quanju.txt',json_encode($price)."-积分价格\r\n",8);
+            @file_put_contents('quanju.txt',$every."-人数\r\n",8);
         foreach ($users as $user) {
             //todo 添加用户积分  用户分的奖励除以积分价格就是积分数量
             $integral = bcmul($every, $price['price'], 2);
@@ -139,7 +140,7 @@ class AwardLake extends BaseModel
                 // 创建用户账单仓库实例
                 $make = app()->make(UserBillRepository::class);
                 $make->incBill($user['uid'], 'award_integral', 'oil_integral', [
-                    'number' => $award_integral,
+                    'number' => $integral,
                     'title' => $title,
                     'balance' => $after,
                     'status' => 1,