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
9d9cd099
authored
Dec 07, 2024
by
赵增煜
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
二维码数字判断
parent
da37c3ec
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
app/Api/Controllers/PatientController.php
+2
-2
No files found.
app/Api/Controllers/PatientController.php
View file @
9d9cd099
...
...
@@ -220,8 +220,8 @@ public function duplicate(Request $request)
$authInfo
=
auth
(
'api'
)
->
user
();
// 确保传递了 ID 参数
if
(
!
isset
(
$data
[
'id'
])
||
empty
(
$data
[
'id'
]))
{
return
$this
->
failed
(
'
ID 参数缺失
'
);
if
(
!
isset
(
$data
[
'id'
])
||
empty
(
$data
[
'id'
])
||
!
is_numeric
(
$data
[
'id'
])
)
{
return
$this
->
failed
(
'
无效二维码
'
);
}
// 根据传递的 ID 查找对应患者数据
...
...
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