seven 2 weeks ago
parent
commit
336c2dd2bf
1 changed files with 8 additions and 3 deletions
  1. 8 3
      app/Services/BetService.php

+ 8 - 3
app/Services/BetService.php

@@ -696,9 +696,14 @@ class BetService extends BaseService
                 // $text .= "会员下注 【" . $v['lastStr'] . "】 {$amount} {$profit} {$yl}\n";
 
                 if(++$bet_num <= $realNoticeNum){
+                    if(empty($v['openKeywords'])){
+                        $openKeyword = '-'; 
+                    }else{
+                        $openKeyword = implode(',', $v['openKeywords']);
+                    }
                     $text .= "用户ID:{$v['lastStr']} \n";
                     $text .= "下注类型:[".implode(',', $v['keywords'])."] \n";
-                    $text .= "中奖类型:[".implode(',', $v['openKeywords'])."] \n";
+                    $text .= "中奖类型:[".$openKeyword."] \n";
                     $text .= "投注金额:{$amount} \n";
                     $text .= "中奖金额:{$v['win_amount']} \n";
                     $text .= "派彩金额:{$profit} \n";
@@ -709,7 +714,7 @@ class BetService extends BaseService
 
                 $text2 = "{$issue_no}期开奖结果 \n";
                 $text2 .= "下注类型:[".implode(',', $v['keywords'])."] \n";
-                $text2 .= "中奖类型:[".implode(',', $v['openKeywords'])."] \n";
+                $text2 .= "中奖类型:[".$openKeyword."] \n";
                 $text2 .= "投注金额:{$amount} \n";
                 $text2 .= "中奖金额:{$v['win_amount']} \n";
                 $text2 .= "派彩金额:{$profit} \n";
@@ -950,7 +955,7 @@ class BetService extends BaseService
                 if ($k + 1 <= $rand_num) {
                     $text .= "用户ID:{$lastStr} \n";
                     $text .= "下注类型:[".$v['keywords']."] \n";
-                    $text .= "中奖类型:[] \n";
+                    $text .= "中奖类型:[-] \n";
                     $text .= "投注金额:{$amount} \n";
                     $text .= "中奖金额:0 \n";
                     $text .= "派彩金额:0 \n";