Commit 9c4e64fe by mushishixian

邮箱验证码返回

parent 3f10f739
...@@ -219,11 +219,11 @@ class AuthApiController extends Controller ...@@ -219,11 +219,11 @@ class AuthApiController extends Controller
$subject = config('mail.from.name'); $subject = config('mail.from.name');
// return $this->setSuccessData($code); // return $this->setSuccessData($code);
Mail::to($email)->send(new SendCode($type, $code)); // Mail::to($email)->send(new SendCode($type, $code));
//错误处理 // //错误处理
if (count(Mail::failures())) { // if (count(Mail::failures())) {
return $this->setError('Email code send failed'); // return $this->setError('Email code send failed');
} // }
return $this->setSuccess('Email code send success '.$code); return $this->setSuccess('Email code send success '.$code);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment