|
|
@@ -126,10 +126,14 @@ class AwardIntegralPriceRepository extends BaseRepository
|
|
|
try {
|
|
|
foreach ($user_lst as $user){
|
|
|
$user_price = bcmul($price, $user['award_integral'], 8); //用户积分总价值
|
|
|
+ @file_put_contents('quanju4.txt', $user_price . "-用户积分总价值\r\n", 8);
|
|
|
if ($user_price > $user['award_range']){
|
|
|
$num = bcsub($user_price, $user['award_range'], 8); //超出额度的金额
|
|
|
+ @file_put_contents('quanju4.txt', $num . "-超出额度的金额\r\n", 8);
|
|
|
if ($num > 0.01){
|
|
|
$num_integral = bcdiv($num, $price, 8); //金额除以价格得到超出额度的积分
|
|
|
+ @file_put_contents('quanju4.txt', $num_integral . "-金额除以价格得到超出额度的积分\r\n", 8);
|
|
|
+
|
|
|
$userBillRepository->decBill($user['uid'], 'award_integral', 'extract_award', [
|
|
|
'link_id' => 0,
|
|
|
'status' => 1,
|