فهرست منبع

update: fix tg

tokumeikoi 3 سال پیش
والد
کامیت
dfa75f49bd
1فایلهای تغییر یافته به همراه1 افزوده شده و 0 حذف شده
  1. 1 0
      app/Services/TelegramService.php

+ 1 - 0
app/Services/TelegramService.php

@@ -40,6 +40,7 @@ class TelegramService {
         $curl->get($this->api . $method . '?' . http_build_query($params));
         $response = $curl->response;
         $curl->close();
+        if (!isset($response->ok)) abort(500, '请求失败');
         if (!$response->ok) {
             abort(500, '来自TG的错误:' . $response->description);
         }