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
d30d5d6b
authored
Nov 14, 2024
by
lujunyi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加店铺账号错误
parent
44d2a560
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
app/Admin/Controllers/PharmacyController.php
+4
-4
No files found.
app/Admin/Controllers/PharmacyController.php
View file @
d30d5d6b
...
@@ -131,9 +131,9 @@ protected function form()
...
@@ -131,9 +131,9 @@ protected function form()
$role
=
Role
::
where
(
'slug'
,
'pharmacy'
)
->
first
();
$role
=
Role
::
where
(
'slug'
,
'pharmacy'
)
->
first
();
// 从表单模型获取手机号和其他信息
// 从表单模型获取手机号和其他信息
$mobile
=
$form
->
mo
del
()
->
mo
bile
;
$mobile
=
$form
->
mobile
;
$name
=
$form
->
model
()
->
name
;
$name
=
$form
->
name
;
$pharmacyId
=
$form
->
model
()
->
id
;
$pharmacyId
=
$form
->
getKey
()
;
// 查找当前是否已有管理员
// 查找当前是否已有管理员
$admin
=
Administrator
::
where
(
'pharmacy_id'
,
$pharmacyId
)
->
first
();
$admin
=
Administrator
::
where
(
'pharmacy_id'
,
$pharmacyId
)
->
first
();
...
@@ -159,7 +159,7 @@ protected function form()
...
@@ -159,7 +159,7 @@ protected function form()
DB
::
commit
();
DB
::
commit
();
}
catch
(
\Exception
$e
)
{
}
catch
(
\Exception
$e
)
{
DB
::
rollBack
();
DB
::
rollBack
();
throw
new
\Exception
(
'创建或者更新店铺管理员错误~'
);
throw
new
\Exception
(
$e
->
getMessage
()
);
}
}
});
});
...
...
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