seven 2 weeks ago
parent
commit
05a935223e
1 changed files with 4 additions and 2 deletions
  1. 4 2
      app/Services/IssueService.php

+ 4 - 2
app/Services/IssueService.php

@@ -301,13 +301,15 @@ class IssueService extends BaseService
         foreach($fake_bet_list as $k => $v){
             $lastStr = self::getLastChar($v['first_name'],1);
             if(in_array($v['keywords'],$awards)){
-                $profit = $v['amount'] * $v['odds'];
+                $amount = (float)$v['amount'];
+                $odds = (float)$v['odds'];
+                $profit = $amount * $odds;
                 if($profit > 880000){
                     $profit = 880000; // 单注最高奖金880000
                 }
                 $item['profit'] = $profit;
 
-                $yl = $profit - $v['amount'];
+                $yl = $profit - $amount;
                 if($k+1 <= 30){
                     $text .= "私聊下注 【******".$lastStr."】 {$yl}\n";
                 }