seven 5 dni temu
rodzic
commit
a4a3335261
1 zmienionych plików z 4 dodań i 4 usunięć
  1. 4 4
      app/Http/Controllers/api/Home.php

+ 4 - 4
app/Http/Controllers/api/Home.php

@@ -115,7 +115,7 @@ class Home extends Controller
     public function setWebHook()
     {
         $this->setMyCommands();
-        try {
+        // try {
             $telegram = new Api(config('services.telegram.token'));
             // 设置 Webhook
             $webhookUrl = url('/api/onMessage'); // Webhook URL,指向刚才定义的路由
@@ -131,9 +131,9 @@ class Home extends Controller
 
             var_dump($res);
 
-        } catch (TelegramSDKException $e) {
-            return $this->error($e->getCode(), $e->getMessage());
-        }
+        // } catch (TelegramSDKException $e) {
+        //     return $this->error($e->getCode(), $e->getMessage());
+        // }
 
         return $this->success($res);
     }