...
|
...
|
@@ -51,6 +51,9 @@ class MemberController extends AdminBaseController |
|
|
if(!empty($param['channel'])) {
|
|
|
$where['channel_id'] = $param['channel'];
|
|
|
}
|
|
|
if(isset($param['is_excel']) && $param['is_excel'] >= 0) {
|
|
|
$where['is_excel'] = $param['is_excel'];
|
|
|
}
|
|
|
$startTime = empty($param['start_time']) ? 0 : strtotime($param['start_time']);
|
|
|
$endTime = empty($param['end_time']) ? 0 : strtotime($param['end_time']);
|
|
|
if (!empty($startTime) && !empty($endTime)) {
|
...
|
...
|
@@ -78,6 +81,7 @@ class MemberController extends AdminBaseController |
|
|
$this->assign('chan',isset($param['channel']) ? $param['channel'] : '');
|
|
|
$this->assign('start_time',isset($param['start_time']) ? $param['start_time'] : '');
|
|
|
$this->assign('end_time',isset($param['end_time']) ? $param['end_time'] : '');
|
|
|
$this->assign('is_excel',isset($param['is_excel']) ? $param['is_excel'] : '');
|
|
|
// 获取渠道列表
|
|
|
$channel = ['站内'];
|
|
|
$channelList = $this->singleData('Channel',['delete_time'=>0],1,['create_time'=>'DESC']);
|
...
|
...
|
@@ -164,12 +168,18 @@ class MemberController extends AdminBaseController |
|
|
$where = [
|
|
|
'delete_time'=>0
|
|
|
];
|
|
|
if(!empty($param['ids'])) {
|
|
|
$where['id'] = ['in',$param['ids']];
|
|
|
}
|
|
|
if(!empty($param['keyword'])) {
|
|
|
$where['mobile|user_login|baby_name|parent_name'] = ['like','%'.$param['keyword'].'%'];
|
|
|
}
|
|
|
if(!empty($param['channel'])) {
|
|
|
$where['channel_id'] = $param['channel'];
|
|
|
}
|
|
|
if(isset($param['is_excel']) && $param['is_excel'] >= 0) {
|
|
|
$where['is_excel'] = $param['is_excel'];
|
|
|
}
|
|
|
$startTime = empty($param['start_time']) ? 0 : strtotime($param['start_time']);
|
|
|
$endTime = empty($param['end_time']) ? 0 : strtotime($param['end_time']);
|
|
|
if (!empty($startTime) && !empty($endTime)) {
|
...
|
...
|
@@ -236,6 +246,7 @@ class MemberController extends AdminBaseController |
|
|
->setCellValue('J' . $i, $v['last_login_ip'])
|
|
|
->setCellValue('K' . $i, date('Y-m-d',$v['last_login_time']));
|
|
|
$i++;
|
|
|
Db::name('Member')->where(['id'=>$v['id']])->update(['is_excel'=>1,'update_time'=>time()]);
|
|
|
}
|
|
|
|
|
|
$filename = '用户数据导出'. date('Y-m-d').'.xls';
|
...
|
...
|
|