Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
semour
/
semour_web
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
d87ac9f0
authored
Nov 22, 2022
by
杨树贤
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
下单页面添加登陆判断
parent
73677bf6
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
app/Http/Controllers/Api/AuthApiController.php
routes/web.php
app/Http/Controllers/Api/AuthApiController.php
View file @
d87ac9f0
...
@@ -209,7 +209,8 @@ class AuthApiController extends Controller
...
@@ -209,7 +209,8 @@ class AuthApiController extends Controller
Redis
::
set
(
$redisKey
,
$code
);
Redis
::
set
(
$redisKey
,
$code
);
Redis
::
expire
(
$redisKey
,
120
);
Redis
::
expire
(
$redisKey
,
120
);
$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
()))
{
...
...
routes/web.php
View file @
d87ac9f0
...
@@ -22,6 +22,7 @@ Route::middleware(['auth'])->group(function () {
...
@@ -22,6 +22,7 @@ Route::middleware(['auth'])->group(function () {
Route
::
get
(
'/user/inquiry'
,
'UserController@inquiry'
)
->
name
(
'user.inquiry'
);
Route
::
get
(
'/user/inquiry'
,
'UserController@inquiry'
)
->
name
(
'user.inquiry'
);
Route
::
get
(
'/user/account'
,
'UserController@account'
)
->
name
(
'user.account'
);
Route
::
get
(
'/user/account'
,
'UserController@account'
)
->
name
(
'user.account'
);
Route
::
get
(
'/change'
,
'AuthController@change'
)
->
name
(
'change'
);
Route
::
get
(
'/change'
,
'AuthController@change'
)
->
name
(
'change'
);
Route
::
get
(
'/confirm'
,
'CarController@confirm'
)
->
name
(
'car.confirm'
);
});
});
Route
::
get
(
'/'
,
'HomeController@index'
)
->
name
(
'home'
);
Route
::
get
(
'/'
,
'HomeController@index'
)
->
name
(
'home'
);
...
@@ -48,7 +49,6 @@ Route::get('/brand/{id}', 'BrandController@info')->name('brand.info');
...
@@ -48,7 +49,6 @@ Route::get('/brand/{id}', 'BrandController@info')->name('brand.info');
Route
::
get
(
'/search'
,
'SearchController@index'
)
->
name
(
'search.index'
);
Route
::
get
(
'/search'
,
'SearchController@index'
)
->
name
(
'search.index'
);
Route
::
get
(
'/car'
,
'CarController@car'
)
->
name
(
'car.car'
);
Route
::
get
(
'/car'
,
'CarController@car'
)
->
name
(
'car.car'
);
Route
::
get
(
'/confirm'
,
'CarController@confirm'
)
->
name
(
'car.confirm'
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment