Ken 1 tuần trước cách đây
mục cha
commit
568d621a6a
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  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) {