mirror of
https://github.com/kuaifan/dootask.git
synced 2025-12-12 11:19:56 +00:00
perf: 邮箱发送失败提示优化
This commit is contained in:
parent
01355b9a28
commit
97fb0ba95a
@ -67,10 +67,13 @@ class UserEmailVerification extends AbstractModel
|
||||
});
|
||||
} catch (Exception $exception) {
|
||||
// 一般是请求超时
|
||||
if (strpos($exception->getMessage(), "Timed Out") !== false)
|
||||
if (strpos($exception->getMessage(), "Timed Out") !== false) {
|
||||
throw new ApiException("language.TimedOut");
|
||||
else
|
||||
} elseif ($exception->getCode() == 550) {
|
||||
throw new ApiException('邮件内容被拒绝,请检查邮箱是否开启接收功能');
|
||||
} else {
|
||||
throw new ApiException($exception->getMessage());
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user