@ -454,6 +469,7 @@ class PayChannelController extends ThinkController
->select(false);
->select(false);
$spreadMap['order_status'] = array('egt',1);
$spreadMap['order_status'] = array('egt',1);
setPowerPromoteIds($spreadMap,'promote_id');
// $spreadMap['pay_way'] = array('egt',1);
// $spreadMap['pay_way'] = array('egt',1);
$coin_pay_order = M('coin_pay_order','tab_')
$coin_pay_order = M('coin_pay_order','tab_')
->field("pay_order_number,create_time as pay_time,promote_account,pay_amount as cost,real_amount as pay_amount,pay_way")
->field("pay_order_number,create_time as pay_time,promote_account,pay_amount as cost,real_amount as pay_amount,pay_way")
@ -463,6 +479,7 @@ class PayChannelController extends ThinkController
//官网数据
//官网数据
$offcialmap['pay_status'] = 1;
$offcialmap['pay_status'] = 1;
$offcialmap['pay_source'] = 0;
$offcialmap['pay_source'] = 0;
setPowerPromoteIds($offcialmap,'promote_id');
$offcialData = M('deposit','tab_')
$offcialData = M('deposit','tab_')
->field("pay_order_number,create_time as pay_time,user_account,promote_account,pay_ip as spend_ip,pay_amount as cost,pay_amount,pay_way")
->field("pay_order_number,create_time as pay_time,user_account,promote_account,pay_ip as spend_ip,pay_amount as cost,pay_amount,pay_way")
@ -478,6 +495,7 @@ class PayChannelController extends ThinkController
unset($map['pay_order_number']);
unset($map['pay_order_number']);
}
}
unset($map['promote_id']);
//超级签数据
//超级签数据
$superSignData = M('game_supersign','tab_')
$superSignData = M('game_supersign','tab_')
->field("order_id as pay_order_number,pay_time,tab_user.account as user_account,tab_user.promote_account,pay_price as cost,pay_price as pay_amount,pay_way")
->field("order_id as pay_order_number,pay_time,tab_user.account as user_account,tab_user.promote_account,pay_price as cost,pay_price as pay_amount,pay_way")
@ -601,8 +619,9 @@ class PayChannelController extends ThinkController
@ -624,6 +643,7 @@ class PayChannelController extends ThinkController
->select(false);
->select(false);
$spreadMap['order_status'] = array('egt',1);
$spreadMap['order_status'] = array('egt',1);
setPowerPromoteIds($spreadMap,'promote_id');
$coin_pay_order = M('coin_pay_order','tab_')
$coin_pay_order = M('coin_pay_order','tab_')
->field("pay_order_number,create_time as pay_time,promote_account,pay_amount as cost,real_amount as pay_amount,pay_way")
->field("pay_order_number,create_time as pay_time,promote_account,pay_amount as cost,real_amount as pay_amount,pay_way")
@ -633,6 +653,7 @@ class PayChannelController extends ThinkController
//官网数据
//官网数据
$offcialmap['pay_status'] = 1;
$offcialmap['pay_status'] = 1;
$offcialmap['pay_source'] = 0;
$offcialmap['pay_source'] = 0;
setPowerPromoteIds($offcialmap,'promote_id');
$offcialData = M('deposit','tab_')
$offcialData = M('deposit','tab_')
->field("pay_order_number,create_time as pay_time,user_account,promote_account,pay_ip as spend_ip,pay_amount as cost,pay_amount,pay_way")
->field("pay_order_number,create_time as pay_time,user_account,promote_account,pay_ip as spend_ip,pay_amount as cost,pay_amount,pay_way")
@ -648,6 +669,7 @@ class PayChannelController extends ThinkController
unset($map['pay_order_number']);
unset($map['pay_order_number']);
}
}
unset($map['promote_id']);
//超级签数据
//超级签数据
$superSignData = M('game_supersign','tab_')
$superSignData = M('game_supersign','tab_')
->field("order_id as pay_order_number,pay_time,tab_user.account as user_account,tab_user.promote_account,pay_price as cost,pay_price as pay_amount,pay_way")
->field("order_id as pay_order_number,pay_time,tab_user.account as user_account,tab_user.promote_account,pay_price as cost,pay_price as pay_amount,pay_way")
@ -798,7 +820,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'];
}
}
setPowerPromoteIds($map,'promote_id');
$data = M('spend','tab_')
$data = M('spend','tab_')
->field("pay_order_number,order_number,user_account,pay_time,game_name,server_name,game_player_name,cost,pay_amount,pay_way as pay_type,pay_way,pay_game_status")
->field("pay_order_number,order_number,user_account,pay_time,game_name,server_name,game_player_name,cost,pay_amount,pay_way as pay_type,pay_way,pay_game_status")
->join('inner join tab_test_white_list on tab_spend.user_id=tab_test_white_list.user_id')
->join('inner join tab_test_white_list on tab_spend.user_id=tab_test_white_list.user_id')
@ -813,6 +835,8 @@ class PayChannelController extends ThinkController
->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')
@ -1098,6 +1123,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'];
}
}
setPowerPromoteIds($map,'promote_id');
$data = M('spend','tab_')
$data = M('spend','tab_')
->field("pay_order_number,order_number,user_account,pay_time,game_name,server_name,game_player_name,cost,pay_amount,pay_way as pay_type,pay_way,pay_game_status")
->field("pay_order_number,order_number,user_account,pay_time,game_name,server_name,game_player_name,cost,pay_amount,pay_way as pay_type,pay_way,pay_game_status")
@ -1114,6 +1140,9 @@ class PayChannelController extends ThinkController