Ken 5 zile în urmă
părinte
comite
20057ec5ae
1 a modificat fișierele cu 3 adăugiri și 4 ștergeri
  1. 3 4
      app/Jobs/SendTelegramGroupMessageJob.php

+ 3 - 4
app/Jobs/SendTelegramGroupMessageJob.php

@@ -13,6 +13,7 @@ use Illuminate\Support\Facades\Log;
 use App\Services\BaseService;
 use DragonCode\PrettyArray\Services\Formatters\Base;
 use Telegram\Bot\Exceptions\TelegramResponseException;
+
 class SendTelegramGroupMessageJob implements ShouldQueue
 {
     use Dispatchable, InteractsWithQueue, Queueable, SerializesModels;
@@ -42,17 +43,15 @@ class SendTelegramGroupMessageJob implements ShouldQueue
 
     public function handle()
     {
-
         try {
             BaseService::bettingGroupNotice($this->text, $this->buttons, $this->image, $this->isTop, $this->separator);
         } catch (TelegramResponseException $e) {
-
             try {
                 BaseService::bettingGroupNotice($this->text, $this->buttons, $this->image, $this->isTop, $this->separator);
-            }catch (TelegramResponseException $e){
+            } catch (TelegramResponseException $e) {
                 try {
                     BaseService::bettingGroupNotice($this->text, $this->buttons, $this->image, $this->isTop, $this->separator);
-                }catch (TelegramResponseException $e){
+                } catch (TelegramResponseException $e) {
                     Log::error('Telegram 消息发送失败: ' . $e->getMessage());
                     Log::error("失败消息: \n" . $this->text);
                 }