@ -808,6 +808,9 @@ class PayChannelController extends ThinkController
$_REQUEST['game_id']?$coinMap['game_id'] = $_REQUEST['game_id']:false;
$_REQUEST['game_id']?$coinMap['game_id'] = $_REQUEST['game_id']:false;
$map['pay_status'] = 1;
$map['pay_status'] = 1;
D("Spend")->addSubsiteWhere($map);
D("Deposit")->addSubsiteWhere($coinMap,"tab_deposit");
D("Deposit")->addSubsiteWhere($offcialmap);
// setPowerPromoteIds($map,'promote_id');
// setPowerPromoteIds($map,'promote_id');
// setPowerPromoteIds($coinMap,'tab_deposit.promote_id');
// setPowerPromoteIds($coinMap,'tab_deposit.promote_id');
@ -1034,6 +1037,7 @@ class PayChannelController extends ThinkController
if ($_REQUEST['game_id']) {
if ($_REQUEST['game_id']) {
$map['game_id'] = $_REQUEST['game_id'];
$map['game_id'] = $_REQUEST['game_id'];
}
}
D("Spend")->addSubsiteWhere($map,"tab_spend");
// setPowerPromoteIds($map,'promote_id');
// setPowerPromoteIds($map,'promote_id');
$data = M('spend','tab_')
$data = M('spend','tab_')
->field("pay_order_number,order_number,tab_spend.user_account,pay_time,game_name,server_name,game_player_name,cost,pay_amount,pay_way as pay_type,pay_way,pay_game_status,sdk_version")
->field("pay_order_number,order_number,tab_spend.user_account,pay_time,game_name,server_name,game_player_name,cost,pay_amount,pay_way as pay_type,pay_way,pay_game_status,sdk_version")
@ -1048,6 +1052,8 @@ class PayChannelController extends ThinkController
$map['user_account'] = $map['tab_spend.user_account'];
$map['user_account'] = $map['tab_spend.user_account'];
unset($map['tab_spend.user_account']);
unset($map['tab_spend.user_account']);
$coinMap = $map;
$coinMap = $map;
$map['tab_spend.user_account'] = array('like',"{$_REQUEST['user_account']}%");
$map['tab_spend.user_account'] = array('like',"{$_REQUEST['user_account']}%");
$coinMap['tab_deposit.pay_status'] = 1;
$coinMap['tab_deposit.pay_status'] = 1;
@ -1055,6 +1061,9 @@ class PayChannelController extends ThinkController
$coinMap['tab_deposit.user_account'] = $coinMap['user_account'];
$coinMap['tab_deposit.user_account'] = $coinMap['user_account'];
unset($coinMap['user_account']);
unset($coinMap['user_account']);
if(isset($coinMap['tab_spend.partner_type'])) unset($coinMap['tab_spend.partner_type']);
D("Deposit")->addSubsiteWhere($coinMap,"tab_deposit");
if(!$coinMap['tab_deposit.user_account']) {
if(!$coinMap['tab_deposit.user_account']) {
unset($coinMap['tab_deposit.user_account']);
unset($coinMap['tab_deposit.user_account']);
}
}
@ -1224,6 +1233,7 @@ class PayChannelController extends ThinkController
// unset($map['pay_time']);
// unset($map['pay_time']);
// }
// }
// setPowerPromoteIds($map,'tab_deposit.promote_id');
// setPowerPromoteIds($map,'tab_deposit.promote_id');
D("Deposit")->addSubsiteWhere($map,"tab_deposit");
$data = M('deposit','tab_')
$data = M('deposit','tab_')
->field("pay_order_number,order_number,user_account,create_time as pay_time,pay_amount as cost,pay_amount,pay_way as pay_type,pay_way")
->field("pay_order_number,order_number,user_account,create_time as pay_time,pay_amount as cost,pay_amount,pay_way as pay_type,pay_way")
->join('inner join tab_test_white_list on tab_deposit.user_id=tab_test_white_list.user_id')
->join('inner join tab_test_white_list on tab_deposit.user_id=tab_test_white_list.user_id')
@ -1413,6 +1423,7 @@ class PayChannelController extends ThinkController
if ($_REQUEST['game_id']) {
if ($_REQUEST['game_id']) {
$map['game_id'] = $_REQUEST['game_id'];
$map['game_id'] = $_REQUEST['game_id'];
}
}
D("Spend")->addSubsiteWhere($map,"tab_spend");
// setPowerPromoteIds($map,'promote_id');
// setPowerPromoteIds($map,'promote_id');
$data = M('spend','tab_')
$data = M('spend','tab_')
@ -1440,6 +1451,9 @@ class PayChannelController extends ThinkController
$coinMap['tab_deposit.user_account'] = $coinMap['user_account'];
$coinMap['tab_deposit.user_account'] = $coinMap['user_account'];
unset($coinMap['user_account']);
unset($coinMap['user_account']);
if(isset($coinMap['tab_spend.partner_type'])) unset($coinMap['tab_spend.partner_type']);
D("Deposit")->addSubsiteWhere($coinMap,"tab_deposit");
if(!$coinMap['tab_deposit.user_account']) {
if(!$coinMap['tab_deposit.user_account']) {
unset($coinMap['tab_deposit.user_account']);
unset($coinMap['tab_deposit.user_account']);
}
}
@ -1635,6 +1649,7 @@ class PayChannelController extends ThinkController
fputcsv($fp, $xlsCell);//将数据格式化为CSV格式并写入到output流中
fputcsv($fp, $xlsCell);//将数据格式化为CSV格式并写入到output流中
$map['pay_source'] = 0;
$map['pay_source'] = 0;
D("Deposit")->addSubsiteWhere($map,"tab_deposit");
if ($map['pay_time']) {
if ($map['pay_time']) {
$map['create_time'] = $map['pay_time'];
$map['create_time'] = $map['pay_time'];
unset($map['pay_time']);
unset($map['pay_time']);