seven 2 тижнів тому
батько
коміт
6284828d59
1 змінених файлів з 11 додано та 11 видалено
  1. 11 11
      app/Services/BetService.php

+ 11 - 11
app/Services/BetService.php

@@ -845,15 +845,17 @@ class BetService extends BaseService
                 $profit = number_format($v['profit'],2);
                 $yl = bcsub($v['profit'], $v['amount'], 2); // 盈利
                 // $text .= "会员下注 【" . $v['lastStr'] . "】 {$amount} {$profit} {$yl}\n";
+                if(++$bet_num >= $realNoticeNum){
+                    $text .= "用户ID:{$v['lastStr']} \n";
+                    $text .= "下注类型:[".implode(',', $v['keywords'])."] \n";
+                    $text .= "中奖类型:[".implode(',', $v['openKeywords'])."] \n";
+                    $text .= "投注金额:{$amount} \n";
+                    $text .= "中奖金额:{$v['win_amount']} \n";
+                    $text .= "派彩金额:{$profit} \n";
+                    $text .= "盈亏金额:{$yl} \n";
+                    $text .= "-------------------------------- \n";
+                }
 
-                $text .= "用户ID:{$v['lastStr']} \n";
-                $text .= "下注类型:[".implode(',', $v['keywords'])."] \n";
-                $text .= "中奖类型:[".implode(',', $v['openKeywords'])."] \n";
-                $text .= "投注金额:{$amount} \n";
-                $text .= "中奖金额:{$v['win_amount']} \n";
-                $text .= "派彩金额:{$profit} \n";
-                $text .= "盈亏金额:{$yl} \n";
-                $text .= "-------------------------------- \n";
 
                 $text2 = "{$issue_no}期开奖结果 \n";
                 $text2 .= "下注类型:[".implode(',', $v['keywords'])."] \n";
@@ -866,9 +868,7 @@ class BetService extends BaseService
             // }else{
             //     $text .= "会员下注 【" . $v['lastStr'] . "】 {$amount} 0 -{$amount}\n";
             // }
-            if(++$bet_num >= $realNoticeNum){
-                break;
-            }
+            
 
         }