推广平台>数据管理>充值玩家--更新

master
chenxiaojun 5 years ago
parent 1989915767
commit a76214ee22

@ -3233,7 +3233,7 @@ class DownloadController extends BaseController {
->field('sum(recharge_cost) recharge_cost,sum(recharge_count) recharge_count,sum(recharge_cost_today) as recharge_cost_today')
->find();
$userIds = array_column($roles, 'user_id');
$userIds = $userIds ?? [-1];
$userIds = $userIds ? $userIds : [-1];
$users = M('user', 'tab_')->where(array('id' => ['in', $userIds]))->getField('id, account', true);
$csvFileName = $xlsName.'.csv';
//设置好告诉浏览器要下载excel文件的headers

Loading…
Cancel
Save