@@ -289,6 +289,9 @@ class LoginServices extends BaseServices
//数据库查询
$user = $this->dao->getOne(['account|phone' => $phone, 'is_del' => 0]);
+ if ($user) {
+ throw new ApiException('邮箱已注册');
+ }
if (!$user) {
$user = $this->register($phone, $password, $spread, $user_type,$account);