diff --git a/Application/Home/Controller/QueryController.class.php b/Application/Home/Controller/QueryController.class.php index a2a242e79..fb854e150 100644 --- a/Application/Home/Controller/QueryController.class.php +++ b/Application/Home/Controller/QueryController.class.php @@ -248,9 +248,10 @@ class QueryController extends BaseController if (!empty($data)) { foreach ($data as &$list) { - $newLoginData = M('User', 'tab_') + $loginMap['user_id'] = $list['id']; + $newLoginData = M('UserLoginRecord', 'tab_') ->field('login_time,login_ip') - ->where(array('user_id' => $list['id'])) + ->where($loginMap) ->order('login_time desc') ->find();