Ken 1 week ago
parent
commit
5b46eb2d6e
1 changed files with 3 additions and 2 deletions
  1. 3 2
      app/Services/RebateService.php

+ 3 - 2
app/Services/RebateService.php

@@ -114,7 +114,8 @@ class RebateService extends BaseService
         //比比返   返水比例百分比
         $percentage = bcmul($rebate_ratio, 100, 2);
         $percentage = floatval($percentage);
-        $rebateAmount = bcmul($amount, $rebate_ratio, 2); // 返利金额
+        $rebateAmount = bcmul($amount, $rebate_ratio, 2); //
+        $rebateAmount = floatval($rebateAmount);
         if ($rebateAmount > 0) {
             $res = WalletService::updateBalance($rebate->member_id, $rebateAmount);
             BalanceLogService::addLog(
@@ -124,7 +125,7 @@ class RebateService extends BaseService
                 $res['after_balance'],
                 "比比返",
                 $rebate->id,
-                "投注{$amount} 返{$rebateAmount} 比例:{$percentage}%");
+                "投注{$amount}返{$rebateAmount};比例:{$percentage}%");
         }
         $rebate->increment("amount", $rebateAmount);
         return true;