正在显示
2 个修改的文件
包含
1 行增加
和
6 行删除
| @@ -39,11 +39,6 @@ class HrController extends BaseController | @@ -39,11 +39,6 @@ class HrController extends BaseController | ||
| 39 | * @time :2023/9/6 10:04 | 39 | * @time :2023/9/6 10:04 |
| 40 | */ | 40 | */ |
| 41 | public function info(HrLogic $logic){ | 41 | public function info(HrLogic $logic){ |
| 42 | - $this->request->validate([ | ||
| 43 | - 'id'=>'required' | ||
| 44 | - ],[ | ||
| 45 | - 'id.required' => 'ID不能为空' | ||
| 46 | - ]); | ||
| 47 | $info = $logic->getHrInfo(); | 42 | $info = $logic->getHrInfo(); |
| 48 | $info['photo_gallery_link'] = $info['photo_gallery']; | 43 | $info['photo_gallery_link'] = $info['photo_gallery']; |
| 49 | $info['id_card_gallery_link'] = $info['id_card_gallery']; | 44 | $info['id_card_gallery_link'] = $info['id_card_gallery']; |
| @@ -38,7 +38,7 @@ class LoginLogic extends BaseLogic | @@ -38,7 +38,7 @@ class LoginLogic extends BaseLogic | ||
| 38 | */ | 38 | */ |
| 39 | public function login() | 39 | public function login() |
| 40 | { | 40 | { |
| 41 | - $manage = $this->model->select('id', 'name', 'password', 'token', 'status', 'gid', 'dept_id','manager_id','role') | 41 | + $manage = $this->model->select('id', 'name', 'password', 'token', 'status', 'gid', 'dept_id','role') |
| 42 | ->where('mobile', $this->param['mobile'])->first(); | 42 | ->where('mobile', $this->param['mobile'])->first(); |
| 43 | if (!$manage){ | 43 | if (!$manage){ |
| 44 | $this->fail('登录用户名不存在'); | 44 | $this->fail('登录用户名不存在'); |
-
请 注册 或 登录 后发表评论