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
7e65461e
authored
Nov 28, 2024
by
纪相明
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
仅限制用户端禁止开方
parent
1183b5b7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
+1
-1
app/Api/Controllers/PrescriptionController.php
+1
-1
No files found.
app/Api/Controllers/PrescriptionController.php
View file @
7e65461e
...
@@ -101,7 +101,6 @@ public function detail(Request $request)
...
@@ -101,7 +101,6 @@ public function detail(Request $request)
// 开方
// 开方
public
function
create
(
Request
$request
)
public
function
create
(
Request
$request
)
{
{
return
$this
->
failed
(
'用户端暂时无法开处方'
);
$authInfo
=
auth
(
'api'
)
->
user
();
$authInfo
=
auth
(
'api'
)
->
user
();
Log
::
info
(
'开方请求参数:'
.
json_encode
(
$request
->
all
()));
Log
::
info
(
'开方请求参数:'
.
json_encode
(
$request
->
all
()));
$pharmacy_id
=
$request
->
input
(
'pharmacy_id'
,
0
);
$pharmacy_id
=
$request
->
input
(
'pharmacy_id'
,
0
);
...
@@ -117,6 +116,7 @@ public function create(Request $request)
...
@@ -117,6 +116,7 @@ public function create(Request $request)
$pharmacy_id
=
$pharmacy
->
id
;
$pharmacy_id
=
$pharmacy
->
id
;
$open_source
=
1
;
$open_source
=
1
;
}
elseif
(
$authInfo
->
last_login_type
==
User
::
LOGIN_TYPE_USER
)
{
}
elseif
(
$authInfo
->
last_login_type
==
User
::
LOGIN_TYPE_USER
)
{
return
$this
->
failed
(
'用户端暂时无法开处方'
);
$pharmacy
=
PharmacyModel
::
find
(
$pharmacy_id
);
$pharmacy
=
PharmacyModel
::
find
(
$pharmacy_id
);
if
(
!
$pharmacy
)
{
if
(
!
$pharmacy
)
{
return
$this
->
failed
(
'药店信息不存在'
);
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