@ -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();