@ -466,6 +444,7 @@ class PayChannelController extends ThinkController
->group('pay_way')
->select(false);
//超级签数据
$superSignDataPay = M('game_supersign','tab_')
->field("sum(pay_price) as pay_amount,pay_way")
@ -488,6 +467,7 @@ class PayChannelController extends ThinkController
if ($map['pay_time']) {
$map['create_time'] = $map['pay_time'];
$testMap['pay_time'] = $map['pay_time'];
unset($map['pay_time']);
}
//充值平台币数据
@ -521,6 +501,7 @@ class PayChannelController extends ThinkController
$bindMap['pay_way'] = array('egt',1);
if($_REQUEST['game_id']) {
$bindMap['game_id'] =$_REQUEST['game_id'];
$testMap['game_id'] =$_REQUEST['game_id'];
}
if ($map['pay_time']) {
$bindMap['create_time'] = $map['pay_time'];
@ -531,11 +512,14 @@ class PayChannelController extends ThinkController
->field('sum(real_amount) as pay_amount,pay_way')
->where($bindMap)
->select(false);
$testMap['pay_status'] = 1;
$testMap['pay_way'] = array('egt',1);
$testorderData = M('test_order', 'tab_')->field('sum(pay_amount) as pay_amount,pay_way')->where($testMap)->group('pay_way')->select(false);
if(!$_REQUEST['game_id']) {
$sql = "{$channelData} UNION ALL {$depositData} UNION ALL {$superSignDataPay} UNION ALL {$spreadDataPay} UNION ALL {$bindRechargeData}";
$sql = "{$channelData} UNION ALL {$depositData} UNION ALL {$superSignDataPay} UNION ALL {$spreadDataPay} UNION ALL {$bindRechargeData} UNION ALL {$testorderData}";
} else {
$sql = "{$channelData} UNION ALL {$depositData}";
$sql = "{$channelData} UNION ALL {$depositData} UNION ALL {$testorderData}";