|
|
@@ -60,7 +60,7 @@ class Login extends Manager
|
|
|
$accessToken['is_system_admin'] = 1;
|
|
|
// 获取权限列表
|
|
|
} else {
|
|
|
- $admin = $EmployeeModel->where('employee_code', $username)->first(['company_id','company_id','id as uid', 'name as username', 'mobile as phone', 'status', 'password', 'insert_time', 'update_time']);
|
|
|
+ $admin = $EmployeeModel->where('employee_code', $username)->first(['company_id','id as uid', 'name as username', 'mobile as phone', 'status', 'password', 'insert_time', 'update_time']);
|
|
|
// 用户不存在
|
|
|
if (!$admin) return json_send(['code' => 'error', 'msg' => '密码错误或账号不存在']);
|
|
|
// 用户不存在
|
|
|
@@ -222,7 +222,7 @@ class Login extends Manager
|
|
|
// 接收数据
|
|
|
$password = $Request->input('password', '');
|
|
|
// 查询用户
|
|
|
- $admin = $EmployeeModel->where('email', $email)->first(['company_id','company_id','id as uid', 'name as username', 'mobile as phone', 'status', 'password', 'insert_time', 'update_time']);
|
|
|
+ $admin = $EmployeeModel->where('email', $email)->first(['company_id','id as uid', 'name as username', 'mobile as phone', 'status', 'password', 'insert_time', 'update_time']);
|
|
|
// 用户不存在
|
|
|
if (!$admin) return json_send(['code' => 'error', 'msg' => '密码错误或账号不存在']);
|
|
|
// 用户不存在
|
|
|
@@ -303,7 +303,7 @@ class Login extends Manager
|
|
|
$user_open_data = $EmployeeOpenidModel->where(['openid' => $tokenData['openid']])->first();
|
|
|
if (!$user_open_data) return json_send(['code' => 'error', 'msg' => '未绑定账号,请登录后在绑定']);
|
|
|
// 查询用户
|
|
|
- $admin = $EmployeeModel->where('id', $user_open_data->employee_id)->first(['company_id','company_id','id as uid', 'name as username', 'mobile as phone', 'status', 'password', 'insert_time', 'update_time']);
|
|
|
+ $admin = $EmployeeModel->where('id', $user_open_data->employee_id)->first(['company_id','id as uid', 'name as username', 'mobile as phone', 'status', 'password', 'insert_time', 'update_time']);
|
|
|
// 用户不存在
|
|
|
if (!$admin) return json_send(['code' => 'error', 'msg' => '账号不存在']);
|
|
|
// 用户不存在
|