Merge branch 'feature/paytime_summary' of wmtx/platform into release

汇付宝
master
廖金灵 4 years ago committed by Gogs
commit a808b86865

@ -293,7 +293,7 @@ function get_pay_way($id=null)
return "微信APP"; return "微信APP";
break; break;
case 4: case 4:
return "威富通"; return "汇付宝";
break; break;
case 5: case 5:
return "聚宝云"; return "聚宝云";
@ -1485,6 +1485,7 @@ function cash_pay_way()
$pay_way[3]=array('key'=>2,'value'=>"微信"); $pay_way[3]=array('key'=>2,'value'=>"微信");
// $pay_way[3]=array('key'=>3,'value'=>'微信APP'); // $pay_way[3]=array('key'=>3,'value'=>'微信APP');
// $pay_way[4]=array('key'=>4,'value'=>'威富通'); // $pay_way[4]=array('key'=>4,'value'=>'威富通');
$pay_way[4]=array('key'=>4,'value'=>'汇付宝');
/* $pay_way[4]=array('key'=>5,'value'=>'聚宝云'); */ /* $pay_way[4]=array('key'=>5,'value'=>'聚宝云'); */
// $pay_way[5]=array('key'=>6,'value'=>'汇付宝'); // $pay_way[5]=array('key'=>6,'value'=>'汇付宝');
/* $pay_way[6]=array('key'=>7,'value'=>"苹果支付"); /* $pay_way[6]=array('key'=>7,'value'=>"苹果支付");
@ -1823,7 +1824,7 @@ function all_pay_way_other($type=false)
// $pay_way[3]=array('key'=>3,'value'=>'微信APP'); // $pay_way[3]=array('key'=>3,'value'=>'微信APP');
// $pay_way[4]=array('key'=>4,'value'=>'威富通'); // $pay_way[4]=array('key'=>4,'value'=>'威富通');
/* $pay_way[4]=array('key'=>5,'value'=>'聚宝云'); */ /* $pay_way[4]=array('key'=>5,'value'=>'聚宝云'); */
// $pay_way[5]=array('key'=>6,'value'=>'汇付宝'); $pay_way[5]=array('key'=>4,'value'=>'汇付宝');
/* $pay_way[6]=array('key'=>7,'value'=>"苹果支付"); /* $pay_way[6]=array('key'=>7,'value'=>"苹果支付");
*/ */
$pay_way[15]=array('key'=>15,'value'=>'双乾支付-快捷'); $pay_way[15]=array('key'=>15,'value'=>'双乾支付-快捷');

@ -718,7 +718,7 @@ class FinanceController extends ThinkController
if (!empty(I('timestart'))) { if (!empty(I('timestart'))) {
$timestart = strtotime(I('timestart')); $timestart = strtotime(I('timestart'));
$map['_string'] = "s.pay_time >= {$timestart}"; $map['_string'] = "s.payed_time >= {$timestart}";
} }
if (!empty(I('timeend'))) { if (!empty(I('timeend'))) {
@ -726,7 +726,7 @@ class FinanceController extends ThinkController
if (!empty($map['_string'])) { if (!empty($map['_string'])) {
$map['_string'] .= " and "; $map['_string'] .= " and ";
} }
$map['_string'] .= " s.pay_time < {$timeend}"; $map['_string'] .= " s.payed_time < {$timeend}";
} }
if (!empty(I('game_type_id'))) { if (!empty(I('game_type_id'))) {
@ -736,7 +736,6 @@ class FinanceController extends ThinkController
//游戏统计列表 //游戏统计列表
$data = D("spend")->gameStatistics($map, $row, $p); $data = D("spend")->gameStatistics($map, $row, $p);
$endTime = time(); $endTime = time();
foreach ($data as $key => $value) { foreach ($data as $key => $value) {
$data[$key]['all_cash_count'] = number_format($value['cash_count'] + $value['balance_coin_count'] + $value['inside_cash_count'],2,'.',''); $data[$key]['all_cash_count'] = number_format($value['cash_count'] + $value['balance_coin_count'] + $value['inside_cash_count'],2,'.','');
} }

@ -215,7 +215,7 @@ class FinancePromoteController extends AdminController
$map["s.game_id"] = array("in",implode(',', array_column(getGameByName($_REQUEST['game_name'], $_REQUEST['game_type']), 'id')) ); $map["s.game_id"] = array("in",implode(',', array_column(getGameByName($_REQUEST['game_name'], $_REQUEST['game_type']), 'id')) );
} }
if($istimeselect){ if($istimeselect){
$map['s.pay_time']=$istimeselect; $map['s.payed_time']=$istimeselect;
} }
$map['s.pay_status']=1; $map['s.pay_status']=1;
$field= "SUM(CASE WHEN pay_way > 0 THEN pay_amount ELSE 0 END) as cash_count, $field= "SUM(CASE WHEN pay_way > 0 THEN pay_amount ELSE 0 END) as cash_count,

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

Loading…
Cancel
Save