seven 2 mēneši atpakaļ
vecāks
revīzija
919aa66acb
1 mainītis faili ar 4 papildinājumiem un 4 dzēšanām
  1. 4 4
      app/Services/BetService.php

+ 4 - 4
app/Services/BetService.php

@@ -595,8 +595,8 @@ class BetService extends BaseService
                 }
                 $item['profit'] = $profit;
 
-                // $yl = $profit - $v['amount'];
-                $yl = bcsub($profit, $amount, 2); // 盈利
+                $yl = $profit - $amount;
+                // $yl = bcsub($profit, $amount, 2); // 盈利
                 if ($k + 1 <= $realNoticeNum) {
 
                     $text .= "{$v['keywords']} 【" . $lastStr . "】{$v['amount']} {$profit} {$yl}\n";
@@ -658,8 +658,8 @@ class BetService extends BaseService
                 }
                 $item['profit'] = $profit;
 
-                // $yl = $profit - $amount;
-                $yl = bcsub($profit, $amount, 2); // 盈利
+                $yl = $profit - $amount;
+                // $yl = bcsub($profit, $amount, 2); // 盈利
                 if ($k + 1 <= $rand_num) {
                     $text .= "{$v['keywords']} 【" . $lastStr . "】 {$v['amount']} {$profit} {$yl}\n";
                 }