Ken 1 settimana fa
parent
commit
46b9853092
1 ha cambiato i file con 8 aggiunte e 0 eliminazioni
  1. 8 0
      app/Services/BetService.php

+ 8 - 0
app/Services/BetService.php

@@ -1184,6 +1184,14 @@ class BetService extends BaseService
         // self::bettingGroupNotice($text, $inlineButton, '');
 
         // Log::error('lotteryNotice Group:'.$text);
+
+        $pos = strrpos($text, '--------------------------------');
+
+        if ($pos !== false) {
+            // 使用 substr_replace 来删除最后一个 "ne"
+            $text = substr_replace($text, "", $pos, strlen('--------------------------------'));
+        }
+
         SendTelegramGroupMessageJob::dispatch($text, $inlineButton, '', false, '--------------------------------');