作者 lyh

gx

... ... @@ -39,11 +39,6 @@ class HrController extends BaseController
* @time :2023/9/6 10:04
*/
public function info(HrLogic $logic){
$this->request->validate([
'id'=>'required'
],[
'id.required' => 'ID不能为空'
]);
$info = $logic->getHrInfo();
$info['photo_gallery_link'] = $info['photo_gallery'];
$info['id_card_gallery_link'] = $info['id_card_gallery'];
... ...
... ... @@ -38,7 +38,7 @@ class LoginLogic extends BaseLogic
*/
public function login()
{
$manage = $this->model->select('id', 'name', 'password', 'token', 'status', 'gid', 'dept_id','manager_id','role')
$manage = $this->model->select('id', 'name', 'password', 'token', 'status', 'gid', 'dept_id','role')
->where('mobile', $this->param['mobile'])->first();
if (!$manage){
$this->fail('登录用户名不存在');
... ...