Ken 5 天之前
父節點
當前提交
568d621a6a
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      app/Services/BetService.php

+ 2 - 2
app/Services/BetService.php

@@ -185,13 +185,13 @@ class BetService extends BaseService
             $text .= "--------\n";
             $errText = "";
             $success = false;
-            $issueNo = "";
             foreach ($betResult as $item) {
                 $keywords = $item['rule'];
                 $amount = $item['amount'];
                 $error = $issueNo = "";
                 $b = static::singleNote($memberId, $keywords, $amount, $issueNo, $text, $error);
                 if ($b) {
+                    $text = str_replace("{issue_no}", $issueNo, $text);
                     $success = true;
                     $text .= "\n";
                 } else {
@@ -199,7 +199,7 @@ class BetService extends BaseService
                     $errText .= "\n";
                 }
             }
-            $text = str_replace("{issue_no}", $issueNo, $text);
+
             $text .= "--------\n";
             $text .= lang("下注成功");
             if (!$success) {