Ken 1 周之前
父节点
当前提交
f0540a38fc
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. 1 1
      app/Jobs/SendTelegramGroupMessageJob.php
  2. 1 1
      app/Services/BaseService.php

+ 1 - 1
app/Jobs/SendTelegramGroupMessageJob.php

@@ -43,7 +43,7 @@ class SendTelegramGroupMessageJob implements ShouldQueue
     {
 
         try {
-            BaseService::bettingGroupNotice($this->text, $this->buttons, $this->image, $this->isTop,$this->separator);
+            BaseService::bettingGroupNotice($this->text, $this->buttons, $this->image, $this->isTop, $this->separator);
         } catch (\Telegram\Bot\Exceptions\TelegramResponseException $e) {
             // // 捕获 Too Many Requests
             // if (str_contains($e->getMessage(), 'Too Many Requests')) {

+ 1 - 1
app/Services/BaseService.php

@@ -197,7 +197,7 @@ class BaseService
      * @param string $separator 分隔符
      * @param boolean $isTop 是否置顶
      */
-    public static function bettingGroupNotice(string $text, array $keyboard = [], string $image = '', $isTop = false, string $separator = "\n"): void
+    public static function bettingGroupNotice(string $text, array $keyboard = [], string $image = '', bool $isTop = false, string $separator = "\n"): void
     {
         $bettingGroup = Config::where('field', 'betting_group')->first()->val;
         $array = explode($separator, $text);