catch Exception 改为 Throwable

This commit is contained in:
kuaifan
2022-05-13 15:58:06 +08:00
parent 279f05fd11
commit 99f9431794
8 changed files with 14 additions and 20 deletions

View File

@@ -661,7 +661,7 @@ class SystemController extends AbstractController
->html('<p>收到此电子邮件意味着您的邮箱配置正确。</p><p>Receiving this email means that your mailbox is configured correctly.</p>'))
->send();
return Base::retSuccess('成功发送');
} catch (\Exception $e) {
} catch (\Throwable $e) {
// 一般是请求超时
if (str_contains($e->getMessage(), "Timed Out")) {
return Base::retError("language.TimedOut");