fix: 任务开始邮件提醒错误的问题

This commit is contained in:
kuaifan
2022-05-13 15:57:28 +08:00
parent 8f58797256
commit 279f05fd11
2 changed files with 8 additions and 8 deletions

View File

@@ -67,7 +67,7 @@ class UserEmailVerification extends AbstractModel
->subject($subject)
->html($content))
->send();
} catch (\Exception $e) {
} catch (\Throwable $e) {
if (str_contains($e->getMessage(), "Timed Out")) {
throw new ApiException("language.TimedOut");
} elseif ($e->getCode() === 550) {