渠道统计bug修正

master
zhengyongxing 5 years ago
parent 6e5cfb72b4
commit 261adfa33c

@ -354,7 +354,9 @@ class PayChannelController extends ThinkController
$bindMap['pay_status'] = 1;
$bindMap['pay_way'] = array('egt',1);
$bindMap['game_id'] =$_REQUEST['game_id'];
if($_REQUEST['game_id']) {
$bindMap['game_id'] =$_REQUEST['game_id'];
}
if ($map['pay_time']) {
$bindMap['create_time'] = $map['pay_time'];
}
@ -364,9 +366,6 @@ class PayChannelController extends ThinkController
->where($bindMap)
->select(false);
// var_dump($spreadDataPay);die();
//将语句整合起来查询
$channelData = "select sum(pay_amount) as pay_amount,pay_way from ({$channelData} UNION ALL {$depositData} UNION ALL {$superSignDataPay} UNION ALL {$spreadDataPay} UNION ALL {$bindRechargeData})t group by pay_way;";
// var_dump($channelData);die();

Loading…
Cancel
Save