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
9e281372
authored
Dec 02, 2024
by
赵增煜
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
问诊人后端关闭验证码验证
parent
61ae272b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
10 deletions
+10
-10
app/Api/Controllers/PatientController.php
+10
-10
No files found.
app/Api/Controllers/PatientController.php
View file @
9e281372
...
...
@@ -70,11 +70,11 @@ public function add(Request $request)
return
$this
->
failed
(
'身份证格式错误'
);
}
$mobile
=
$data
[
'mobile'
];
$verificationCode
=
cache
()
->
get
(
"sms_verification_code_
{
$mobile
}
"
);
$code
=
$data
[
'code'
];
if
(
$verificationCode
!=
$code
)
{
return
$this
->
failed
(
'验证码错误'
);
}
#
$verificationCode = cache()->get("sms_verification_code_{$mobile}");
#
$code = $data['code'];
#
if ($verificationCode != $code) {
#
return $this->failed('验证码错误');
#
}
$idCardInfo
=
Util
::
getIdCardInfo
(
$data
[
'id_card'
]);
$patient
->
name
=
$data
[
'name'
];
$patient
->
id_card
=
$data
[
'id_card'
];
...
...
@@ -107,11 +107,11 @@ public function update(Request $request)
return
$this
->
failed
(
'该问诊人不存在'
);
}
$mobile
=
$request
->
input
(
'mobile'
);
$verificationCode
=
cache
()
->
get
(
"sms_verification_code_
{
$mobile
}
"
);
$code
=
$request
->
input
(
'code'
);
if
(
$verificationCode
!=
$code
)
{
return
$this
->
failed
(
'验证码错误'
);
}
#
$verificationCode = cache()->get("sms_verification_code_{$mobile}");
#
$code = $request->input('code');
#
if ($verificationCode != $code) {
#
return $this->failed('验证码错误');
#
}
$data
->
name
=
$request
->
input
(
'name'
);
$data
->
id_card
=
$id_card
;
...
...
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