修改bug

master
ELF 5 years ago
parent 57b552f4f3
commit 3d9d85d008

@ -1118,7 +1118,14 @@ class DownloadController extends BaseController {
* @author sunke
*/
public function recharge_data_export() {
if (empty(I('begtime')) || empty(I('endtime'))) {
$this->error('请选择起止时间');
}
$beginTime = strtotime(I('begtime') . ' 00:00:00');
$endtime = strtotime(I('endtime') . ' 23:59:59');
if (($endTime - $beginTime) > 31 * 24 * 3600) {
$this->error('时间范围不能超过31天');
}
$map1['chain'] = ['like','%'.'/'.PID.'/'.'%'];
$rs = M('promote','tab_')->where($map1)->field('id,account,nickname')->select();
$childPromoteIds = '';
@ -1607,6 +1614,7 @@ class DownloadController extends BaseController {
$map[$key] = $value;
}
}
// var_dump($dataname);die();
switch ($dataname) {
case "注册明细数据":
$this->registerExcelInfo($id,$map); //注册明细
@ -1621,6 +1629,7 @@ class DownloadController extends BaseController {
$this->rechargeExcelInfo($id,$map);
break;
case "充值玩家数据":
var_dump('ss');die();
$this->userRechargeExcelInfo($id,$map);
break;
case "推广员业绩":
@ -1672,6 +1681,7 @@ class DownloadController extends BaseController {
$this->orderlistExcelInfo($id,$map);
break;
default:
var_dump('ss');die();
break;
}
@ -2640,7 +2650,6 @@ class DownloadController extends BaseController {
array('p_proinfo','组长'),
array('proinfo','推广员'),
array('pay_time','付款时间'),
);
$model = M('spend','tab_');
$data = $model
@ -2649,6 +2658,7 @@ class DownloadController extends BaseController {
->join('left join tab_promote on tab_spend.promote_id = tab_promote.id')
->where($map)
->order('tab_spend.id desc')
->limit(1)
->select();
$xlsData = [];
foreach ($data as $key1 => $value1) {

Loading…
Cancel
Save