Commit ec23171d authored by hujun's avatar hujun

客户登陆判断

parent 7031c521
...@@ -249,7 +249,7 @@ class Member extends Basic{ ...@@ -249,7 +249,7 @@ class Member extends Basic{
$where['a.first_login_time'] = ['between time', [$params['first_login_start'] . ' 00:00:00', $where['a.first_login_time'] = $params['first_login_end'] . ' 23:59:59']]; $where['a.first_login_time'] = ['between time', [$params['first_login_start'] . ' 00:00:00', $where['a.first_login_time'] = $params['first_login_end'] . ' 23:59:59']];
} }
$fields = 'a.id,a.user_nick,a.user_name,a.user_phone,a.user_pic,a.create_time,a.user_pswd,a.referrer_id,a.registration_time,a.user_name,a.last_login_ip,a.status'; $fields = 'a.id,a.user_nick,a.user_name,a.user_phone,a.user_pic,a.create_time,a.user_pswd,a.referrer_id,a.registration_time,a.user_name,a.last_login_ip,last_login_time,a.status,a.first_login_time';
try { try {
$data['list'] = $this->user->getUserAgent($pageNo, $pageSize, 'a.id DESC', $fields, $where, $type); $data['list'] = $this->user->getUserAgent($pageNo, $pageSize, 'a.id DESC', $fields, $where, $type);
......
...@@ -25,10 +25,12 @@ ...@@ -25,10 +25,12 @@
[% } %] [% } %]
</td> </td>
<td> <td>
[% if (it[item]['last_login_ip'] == null){ %] [% if (it[item]['last_login_time'] != null){ %]
[% }else{ %] [% } else if (it[item]['first_login_time'] != null) { %]
[% }else{ %]
[% } %] [% } %]
</td> </td>
<td> <td>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment