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
2a32ce6f
authored
Dec 07, 2024
by
赵增煜
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
二维码数字判断
parent
6f794845
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletions
+2
-1
app/Api/Controllers/PatientController.php
+2
-1
No files found.
app/Api/Controllers/PatientController.php
View file @
2a32ce6f
...
...
@@ -10,6 +10,7 @@
use
Illuminate\Http\Request
;
use
Jxlwqq\IdValidator\IdValidator
;
use
Milon\Barcode\DNS2D
;
use
Illuminate\Support\Facades\Log
;
// 问诊人控制器
class
PatientController
extends
BaseApiController
...
...
@@ -240,7 +241,7 @@ public function duplicate(Request $request)
$pharmacy
=
PharmacyModel
::
query
()
->
where
(
'user_id'
,
$authInfo
->
id
)
->
first
();
# 校验该药店是否已经存在手机号+用户名
$patientInfo
=
PatientModel
::
where
(
'mobile'
,
$existingPatient
->
mobile
)
->
where
(
'name'
,
$existingPatient
->
name
)
->
where
(
'pharmacy_id'
,
$authInfo
->
id
)
->
first
();
$this
->
info
(
'patient=>'
.
json_encode
(
$
$patientInfo
));
Log
::
info
(
'patient=>'
.
json_encode
(
$patientInfo
));
if
(
$patientInfo
)
{
return
$this
->
failed
(
'该问诊人信息已存在'
);
}
...
...
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