|
|
|
@ -25,23 +25,23 @@ class PayChannelController extends ThinkController
|
|
|
|
|
|
|
|
|
|
$map = [];
|
|
|
|
|
if (!empty($_REQUEST['timestart']) && !empty($_REQUEST['timeend'])) {
|
|
|
|
|
$map['pay_time'] = array('between', [strtotime($_REQUEST['timestart']), strtotime($_REQUEST['timeend']) + 86399]);
|
|
|
|
|
$coinMap['tab_deposit.create_time'] = array('between', [strtotime($_REQUEST['timestart']), strtotime($_REQUEST['timeend']) + 86399]);
|
|
|
|
|
$bindMap['create_time'] = array('between', [strtotime($_REQUEST['timestart']), strtotime($_REQUEST['timeend']) + 86399]);
|
|
|
|
|
$map['payed_time'] = array('between', [strtotime($_REQUEST['timestart']), strtotime($_REQUEST['timeend']) + 86399]);
|
|
|
|
|
$coinMap['tab_deposit.payed_time'] = array('between', [strtotime($_REQUEST['timestart']), strtotime($_REQUEST['timeend']) + 86399]);
|
|
|
|
|
$bindMap['payed_time'] = array('between', [strtotime($_REQUEST['timestart']), strtotime($_REQUEST['timeend']) + 86399]);
|
|
|
|
|
$offcialmap['create_time'] = array('between', [strtotime($_REQUEST['timestart']), strtotime($_REQUEST['timeend']) + 86399]);
|
|
|
|
|
$spreadMap['create_time'] = array('between', [strtotime($_REQUEST['timestart']), strtotime($_REQUEST['timeend']) + 86399]);
|
|
|
|
|
$maptestorder['pay_time'] = array('between', [strtotime($_REQUEST['timestart']), strtotime($_REQUEST['timeend']) + 86399]);
|
|
|
|
|
} elseif (!empty($_REQUEST['timestart']) && empty($_REQUEST['timeend'])) {
|
|
|
|
|
$map['pay_time'] = array('between', [strtotime($_REQUEST['timestart']), time()]);
|
|
|
|
|
$coinMap['tab_deposit.create_time'] = array('between', [strtotime($_REQUEST['timestart']), time()]);
|
|
|
|
|
$bindMap['create_time'] = array('between', [strtotime($_REQUEST['timestart']), time()]);
|
|
|
|
|
$map['payed_time'] = array('between', [strtotime($_REQUEST['timestart']), time()]);
|
|
|
|
|
$coinMap['tab_deposit.payed_time'] = array('between', [strtotime($_REQUEST['timestart']), time()]);
|
|
|
|
|
$bindMap['payed_time'] = array('between', [strtotime($_REQUEST['timestart']), time()]);
|
|
|
|
|
$offcialmap['create_time'] = array('between', [strtotime($_REQUEST['timestart']), time()]);
|
|
|
|
|
$spreadMap['create_time'] = array('between', [strtotime($_REQUEST['timestart']), time()]);
|
|
|
|
|
$maptestorder['pay_time'] = array('between', [strtotime($_REQUEST['timestart']), time()]);
|
|
|
|
|
} elseif (empty($_REQUEST['timestart']) && !empty($_REQUEST['timeend'])) {
|
|
|
|
|
$map['pay_time'] = array('elt', (strtotime($_REQUEST['timeend']) + 86399));
|
|
|
|
|
$coinMap['tab_deposit.create_time'] = array('elt', (strtotime($_REQUEST['timeend']) + 86399));
|
|
|
|
|
$bindMap['create_time'] = array('elt', (strtotime($_REQUEST['timeend']) + 86399));
|
|
|
|
|
$map['payed_time'] = array('elt', (strtotime($_REQUEST['timeend']) + 86399));
|
|
|
|
|
$coinMap['tab_deposit.payed_time'] = array('elt', (strtotime($_REQUEST['timeend']) + 86399));
|
|
|
|
|
$bindMap['payed_time'] = array('elt', (strtotime($_REQUEST['timeend']) + 86399));
|
|
|
|
|
$offcialmap['create_time'] = array('elt', (strtotime($_REQUEST['timeend']) + 86399));
|
|
|
|
|
$spreadMap['create_time'] = array('elt', (strtotime($_REQUEST['timeend']) + 86399));
|
|
|
|
|
$maptestorder['pay_time'] = array('elt', (strtotime($_REQUEST['timeend']) + 86399));
|
|
|
|
@ -131,6 +131,8 @@ class PayChannelController extends ThinkController
|
|
|
|
|
$data[$key]['sdk_version'] =getGameTypeName($data[$key]['sdk_version']);
|
|
|
|
|
}
|
|
|
|
|
$superMap = $map;
|
|
|
|
|
unset($superMap['payed_time']);
|
|
|
|
|
$superMap['pay_time'] = $map['payed_time'];
|
|
|
|
|
// unset($superMap['promote_id']);
|
|
|
|
|
//超级签数据
|
|
|
|
|
$superSignData = M('game_supersign','tab_')
|
|
|
|
@ -193,12 +195,12 @@ class PayChannelController extends ThinkController
|
|
|
|
|
$this->assign('spreadData',$spreadData);
|
|
|
|
|
|
|
|
|
|
$channelData = $this->getPayChannel($map);
|
|
|
|
|
|
|
|
|
|
$testOrderChannelDatas = $this->getTestOrderPayChannel($maptestorder);
|
|
|
|
|
$payTypeData['支付宝支付金额'] = 0;
|
|
|
|
|
$payTypeData['微信支付金额'] = 0;
|
|
|
|
|
$payTypeData['快捷支付金额'] = 0;
|
|
|
|
|
$payTypeData['苹果支付金额'] = 0;
|
|
|
|
|
$payTypeData['汇付宝支付金额'] = 0;
|
|
|
|
|
$payTypeData['易宝支付金额'] = 0;
|
|
|
|
|
$payTypeData['其他支付金额'] = 0;
|
|
|
|
|
|
|
|
|
@ -206,6 +208,8 @@ class PayChannelController extends ThinkController
|
|
|
|
|
|
|
|
|
|
if ($value['pay_way']==1 || $value['pay_way']==9 ) {
|
|
|
|
|
$payTypeData['支付宝支付金额'] += number_format($value['pay_amount'],2,'.','');
|
|
|
|
|
} else if ($value['pay_way']==4 ) {
|
|
|
|
|
$payTypeData['汇付宝支付金额'] += number_format($value['pay_amount'],2,'.','');
|
|
|
|
|
} else if ($value['pay_way']==2 || $value['pay_way']==3 ) {
|
|
|
|
|
$payTypeData['微信支付金额'] += number_format($value['pay_amount'],2,'.','');
|
|
|
|
|
} else if ($value['pay_way']==15) {
|
|
|
|
|