Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
赵增煜
/
tzt-admin
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
d6cca141
authored
Nov 23, 2024
by
赵增煜
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
d99c8b38
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
app/Api/Controllers/UserController.php
+2
-2
No files found.
app/Api/Controllers/UserController.php
View file @
d6cca141
...
...
@@ -65,12 +65,12 @@ public function smsCode(Request $request)
$mobile
=
$request
->
input
(
'mobile'
);
$login_type
=
$request
->
input
(
'login_type'
);
if
(
!
$mobile
)
{
return
response
()
->
json
([
'error'
=>
'手机号不能为空'
]
);
return
$this
->
failed
(
'手机号不能为空'
);
}
// 验证手机号格式
if
(
!
preg_match
(
'/^1[3-9]\d{9}$/'
,
$mobile
))
{
return
response
()
->
json
([
'error'
=>
'手机号格式不正确'
]
);
return
$this
->
failed
(
'手机号格式不正确'
);
}
// // 增加手机验证码发送频率限制
// $today = date('Y-m-d');
...
...
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