Merge branch 'dev' of 47.111.118.107:wmtx/platform into dev

master
ELF 5 years ago
commit b20e7f233b

@ -1133,7 +1133,7 @@ class MemberController extends ThinkController
unset($_REQUEST['end']); unset($_REQUEST['end']);
} }
if (isset($_REQUEST['account'])) { if (isset($_REQUEST['account'])) {
$map['user_account'] = array('like', '%' . trim($_REQUEST['account']) . '%'); $map['user_account'] = array('like', trim($_REQUEST['account']) . '%');
unset($_REQUEST['account']); unset($_REQUEST['account']);
} }
if (isset($_REQUEST['server_name'])) { if (isset($_REQUEST['server_name'])) {
@ -1169,9 +1169,13 @@ class MemberController extends ThinkController
// $map['login_time'] = ['exp', 'login_time<>0']; // $map['login_time'] = ['exp', 'login_time<>0'];
$extend = array(); $extend = array();
$extend['map'] = $map; $extend['map'] = $map;
$count = M('UserLoginRecord','tab_')->table('tab_user_login_record FORCE INDEX(user_id_promote_idx)')->field('user_id')->where($extend['map'])->group('user_id')->select(false); $count = M('UserLoginRecord','tab_')
// ->table('tab_user_login_record FORCE INDEX(user_id_promote_idx)')
->field('user_id')->where($extend['map'])
->group('user_id')
->select(false);
$sql = "select count(user_id) as count from ({$count})t"; $sql = "select count(user_id) as count from ({$count})t";
// dd($sql);
$count = M('UserLoginRecord','tab_')->query($sql); $count = M('UserLoginRecord','tab_')->query($sql);
$this->m_title = '登录记录'; $this->m_title = '登录记录';

Loading…
Cancel
Save