Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
L
laravelzh
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
冯超鹏
laravelzh
Commits
8086d3ae
Commit
8086d3ae
authored
Oct 08, 2020
by
冯超鹏
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
uinapp邮箱验证
parent
2d3463e7
Pipeline
#142
canceled with stages
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
0 deletions
+12
-0
UinappHomeController.php
app/Http/Controllers/UinappHomeController.php
+11
-0
api.php
routes/api.php
+1
-0
No files found.
app/Http/Controllers/UinappHomeController.php
View file @
8086d3ae
...
@@ -109,6 +109,17 @@ class UinappHomeController extends Controller
...
@@ -109,6 +109,17 @@ class UinappHomeController extends Controller
return
$this
->
jsonSuccessData
([
'devicetype'
=>
$devicetypecount
,
'gas'
=>
$gas
,
'danwei'
=>
$danwei
]);
return
$this
->
jsonSuccessData
([
'devicetype'
=>
$devicetypecount
,
'gas'
=>
$gas
,
'danwei'
=>
$danwei
]);
}
}
public
function
isemail
(
Request
$request
)
{
$isemail
=
$request
->
input
(
'email'
);
$data
=
DB
::
table
(
'users'
)
->
where
(
'email'
,
'='
,
$isemail
)
->
first
();
if
(
$data
){
return
$this
->
jsonSuccessData
(
1
);
}
else
{
return
$this
->
jsonSuccessData
(
2
);
}
}
//监测是否是汉子
//监测是否是汉子
private
function
isKanji
(
$str
)
private
function
isKanji
(
$str
)
{
{
...
...
routes/api.php
View file @
8086d3ae
...
@@ -126,6 +126,7 @@ Route::group(['middleware'=>'auth:api'],function (){
...
@@ -126,6 +126,7 @@ Route::group(['middleware'=>'auth:api'],function (){
Route
::
post
(
'huinapphome/imitation'
,
'UinappHomeController@imitation'
);
//模糊查询
Route
::
post
(
'huinapphome/imitation'
,
'UinappHomeController@imitation'
);
//模糊查询
Route
::
post
(
'huinapphome/setseachdata'
,
'UinappHomeController@setseachdata'
);
//指定查询
Route
::
post
(
'huinapphome/setseachdata'
,
'UinappHomeController@setseachdata'
);
//指定查询
Route
::
get
(
'huinapphome/devicetype'
,
'UinappHomeController@devicetype'
);
//测试添加页面选择数组数据
Route
::
get
(
'huinapphome/devicetype'
,
'UinappHomeController@devicetype'
);
//测试添加页面选择数组数据
Route
::
post
(
'huinapphome/isemail'
,
'UinappHomeController@isemail'
);
//邮箱验证
});
});
// Fake APIs
// Fake APIs
...
...
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