Ken před 1 týdnem
rodič
revize
f6f86fabc8
1 změnil soubory, kde provedl 14 přidání a 15 odebrání
  1. 14 15
      app/Services/BetService.php

+ 14 - 15
app/Services/BetService.php

@@ -1127,9 +1127,8 @@ class BetService extends BaseService
         shuffle($openList);
 
 
-        $text = lang("{issue_no}期开奖结果");
-        $text = str_replace("{issue_no}", $issue_no, $text);
-        $text .= "\n-----" . lang("本期开奖账单") . "----- \n";
+        $text = "{$issue_no}期开奖结果";
+        $text .= "\n-----本期开奖账单----- \n";
         foreach ($openList as $k => $v) {
             $language = User::where('member_id', $v['member_id'])->first()->language;
             App::setLocale($language);
@@ -1146,20 +1145,20 @@ class BetService extends BaseService
             }
 
             if (($k + 1) <= $noticeNum) {
-                $text .= lang("用户ID") . ":{$v['lastStr']} \n";
-                $text .= lang("下注类型") . ":[" . implode(',', $v['keywords']) . "] \n";
-                $text .= lang("中奖类型") . ":[" . $openKeyword . "] \n";
-                $text .= lang("投注金额") . ":{$amount} \n";
-                $text .= lang("中奖金额") . ":{$v['win_amount']} \n";
-                $text .= lang("派彩金额") . ":{$profit} \n";
-                $text .= lang("盈亏金额") . ":{$yl} \n";
+                $text .= "用户ID:{$v['lastStr']} \n";
+                $text .= "下注类型:[" . implode(',', $v['keywords']) . "] \n";
+                $text .= "中奖类型:[" . $openKeyword . "] \n";
+                $text .= "投注金额:{$amount} \n";
+                $text .= "中奖金额:{$v['win_amount']} \n";
+                $text .= "派彩金额:{$profit} \n";
+                $text .= "盈亏金额:{$yl} \n";
                 $text .= "-------------------------------- \n";
             }
 
             if ($v['is_send']) {
                 $text2 = lang("{issue_no}期开奖结果");
                 $text2 = str_replace("{issue_no}", $issue_no, $text2);
-                $text2 .="\n";
+                $text2 .= "\n";
                 $text2 .= lang('下注类型') . ":[" . implode(',', $v['keywords']) . "] \n";
                 $text2 .= lang('中奖类型') . ":[" . $openKeyword . "] \n";
                 $text2 .= lang('投注金额') . ":{$amount} \n";
@@ -1216,13 +1215,13 @@ class BetService extends BaseService
             }
         }
 
-        $text3 = "📝 " . lang("{issue_no}期投注统计") . " \n";
-        $text3 = str_replace("{issue_no}", $issue_no, $text3);
+        $text3 = "📝 {$issue_no}期投注统计 \n";
+
         if ($keywordsList) {
             ksort($keywordsList);
             foreach ($keywordsList as $k => $v) {
-                $text3 .= lang("玩法") . ":{$k} \n";
-                $text3 .= lang("总注") . ":{$v} \n";
+                $text3 .= "玩法:{$k} \n";
+                $text3 .= "总注:{$v} \n";
                 $text3 .= "-------------- \n";
             }
         }