From 8b2e384fb6abec0a0040f323f4faba5b4a978b74 Mon Sep 17 00:00:00 2001 From: chenxiaojun <956334972@qq.com> Date: Fri, 25 Oct 2019 10:44:02 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8E=A8=E5=B9=BF=E5=B9=B3=E5=8F=B0->=E6=B3=A8?= =?UTF-8?q?=E5=86=8C=E6=98=8E=E7=BB=86->bug=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Application/Home/Controller/QueryController.class.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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();