Commit d87ac9f0 by 杨树贤

下单页面添加登陆判断

parent 73677bf6
......@@ -209,7 +209,8 @@ class AuthApiController extends Controller
Redis::set($redisKey, $code);
Redis::expire($redisKey, 120);
$subject = config('mail.from.name');
// return $this->setSuccessData($code);
return $this->setSuccessData($code);
Mail::to($email)->send(new SendCode($type, $code));
//错误处理
if (count(Mail::failures())) {
......
......@@ -22,6 +22,7 @@ Route::middleware(['auth'])->group(function () {
Route::get('/user/inquiry', 'UserController@inquiry')->name('user.inquiry');
Route::get('/user/account', 'UserController@account')->name('user.account');
Route::get('/change', 'AuthController@change')->name('change');
Route::get('/confirm', 'CarController@confirm')->name('car.confirm');
});
Route::get('/', 'HomeController@index')->name('home');
......@@ -48,7 +49,6 @@ Route::get('/brand/{id}', 'BrandController@info')->name('brand.info');
Route::get('/search', 'SearchController@index')->name('search.index');
Route::get('/car', 'CarController@car')->name('car.car');
Route::get('/confirm', 'CarController@confirm')->name('car.confirm');
......
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