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
3976c6a2
authored
Nov 21, 2024
by
lujunyi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
删除无用代码
parent
780eacda
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
3 deletions
+1
-3
app/Admin/Controllers/PharmacyController.php
+1
-3
No files found.
app/Admin/Controllers/PharmacyController.php
View file @
3976c6a2
...
@@ -145,11 +145,9 @@ protected function form()
...
@@ -145,11 +145,9 @@ protected function form()
$status
=
$form
->
status
;
$status
=
$form
->
status
;
$pharmacistNum
=
PharmacistModel
::
where
(
'status'
,
1
)
->
count
();
$pharmacistNum
=
PharmacistModel
::
where
(
'status'
,
1
)
->
count
();
if
(
$status
==
1
&&
$pharmacistNum
<=
0
)
{
if
(
$status
==
1
&&
$pharmacistNum
<=
0
)
{
return
$form
->
response
()
->
error
(
'开启失败,至少启用一个药师才可以开启药店~'
);
return
$form
->
response
()
->
error
(
'开启失败,至少
添加并且
启用一个药师才可以开启药店~'
);
}
}
if
(
$form
->
mobile
&&
!
preg_match
(
'/^1[3456789]{1}[0-9]{9}$/'
,
$form
->
mobile
))
{
if
(
$form
->
mobile
&&
!
preg_match
(
'/^1[3456789]{1}[0-9]{9}$/'
,
$form
->
mobile
))
{
$form
->
responseValidationMessages
(
'mobile'
,
'手机号格式错误~'
);
return
$form
->
response
()
->
error
(
'手机号格式错误'
);
return
$form
->
response
()
->
error
(
'手机号格式错误'
);
}
}
});
});
...
...
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