|
|
@@ -130,10 +130,10 @@ 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);
|
|
|
+ @file_put_contents('quanju.txt',$every."-每个用户分得的积分\r\n",8);
|
|
|
foreach ($users as $user) {
|
|
|
//todo 添加用户积分 用户分的奖励除以积分价格就是积分数量
|
|
|
- $integral = bcmul($every, $price['price'], 2);
|
|
|
+ $integral = bcdiv($every, $price['price'], 2);
|
|
|
$award_integral=User::where('uid', $user['uid'])->value('award_integral');
|
|
|
if ($award_integral>0){
|
|
|
$after = bcadd($award_integral, $integral, 2);
|