Ken hace 2 días
padre
commit
e6258a8d0e
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      app/Http/Controllers/admin/Config.php

+ 1 - 1
app/Http/Controllers/admin/Config.php

@@ -401,7 +401,7 @@ class Config extends Controller
                     $telegram->pinChatMessage(['chat_id' => "@{$config['chatId']}", 'message_id' => $messageId]);
                 }
             } catch (TelegramSDKException $e) {
-                return $this->error(HttpStatus::CUSTOM_ERROR, '保存成功,发送失败');
+                return $this->error(HttpStatus::CUSTOM_ERROR, '保存成功,发送失败',$e->getMessage());
             } catch (Exception $e) {
                 return $this->error($e->getCode(), '保存成功,发送失败');
             }