|
@@ -145,7 +145,7 @@ class Login extends Controller
|
|
|
}
|
|
|
/*! 用户信息验证 */
|
|
|
$map = ['username' => $data['username'],'usertype'=>$data['usertype'], 'is_deleted' => 0];
|
|
|
- $user = SystemUser::mk()->where($map)->findOrEmpty();
|
|
|
+ $user = SystemUser::mk()->where($map)->order('id','desc')->findOrEmpty();
|
|
|
if ($user->isEmpty()) {
|
|
|
$this->app->session->set('LoginInputSessionError', true);
|
|
|
$this->error('登录账号或密码错误,请重新输入!');
|