Commit 3976c6a2 by lujunyi

删除无用代码

parent 780eacda
...@@ -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('手机号格式错误');
} }
}); });
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment