|
|
|
@ -1173,7 +1173,7 @@ class ExportController extends Controller
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$xlsCell = array(
|
|
|
|
|
"支付订单号","CP订单号", "充值时间", "玩家账号", "游戏名称", L('Subordinate_channel'), "充值ip","区服ID", "游戏区服",
|
|
|
|
|
"支付订单号","CP订单号", "充值时间","支付时间", "玩家账号", "游戏名称", L('Subordinate_channel'), "充值ip","区服ID", "游戏区服",
|
|
|
|
|
"角色ID","角色名称", "订单金额", "实付金额", "充值方式", L('Order_status'), "游戏通知状态", "消费"."{$total}"
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
@ -1205,7 +1205,7 @@ class ExportController extends Controller
|
|
|
|
|
// ->join($tab_promote_join)
|
|
|
|
|
// ->order('pay_time DESC')
|
|
|
|
|
// ->select();
|
|
|
|
|
->field('pay_order_number,extend,pay_time,user_account,game_name,promote_account,spend_ip,server_id,server_name,game_player_id,game_player_name,cost,pay_amount,pay_way,pay_status,pay_game_status')
|
|
|
|
|
->field('pay_order_number,extend,pay_time,payed_time,user_account,game_name,promote_account,spend_ip,server_id,server_name,game_player_id,game_player_name,cost,pay_amount,pay_way,pay_status,pay_game_status')
|
|
|
|
|
->where($map)
|
|
|
|
|
->limit(($i-1)*$perSize ,$perSize)
|
|
|
|
|
->order($order ? $order : 'pay_time desc')
|
|
|
|
@ -1213,6 +1213,11 @@ class ExportController extends Controller
|
|
|
|
|
|
|
|
|
|
foreach($xlsData as $value) {
|
|
|
|
|
$value['pay_time'] = date('Y-m-d H:i:s',$value['pay_time']);
|
|
|
|
|
if($value['pay_status'] == 1) {
|
|
|
|
|
$value['payed_time'] = date('Y-m-d H:i:s',$value['payed_time']);
|
|
|
|
|
}else {
|
|
|
|
|
$value['payed_time'] = "------";
|
|
|
|
|
}
|
|
|
|
|
$value['extend'] = $value['extend'].'`';
|
|
|
|
|
$value['pay_way'] = get_pay_way($value['pay_way']);
|
|
|
|
|
$value['pay_status'] = get_info_status($value['pay_status'],9);
|
|
|
|
@ -1325,6 +1330,7 @@ class ExportController extends Controller
|
|
|
|
|
array('pay_way', "充值方式", 'get_pay_way', '*'),
|
|
|
|
|
array('pay_ip', "充值ip"),
|
|
|
|
|
array('create_time', "充值时间"),
|
|
|
|
|
array('payed_time','支付时间'),
|
|
|
|
|
array('pay_status', L('Order_status'), 'get_info_status', '*', '9'),
|
|
|
|
|
array('', "共计充值{$total}"),
|
|
|
|
|
);
|
|
|
|
@ -1334,6 +1340,11 @@ class ExportController extends Controller
|
|
|
|
|
->select();
|
|
|
|
|
foreach ($xlsData as $key => $value) {
|
|
|
|
|
$xlsData[$key]['create_time'] = date('Y-m-d H:i:s', $value['create_time']);
|
|
|
|
|
if ($value['pay_status'] == 1){
|
|
|
|
|
$xlsData[$key]['payed_time'] = date('Y-m-d H:i:s', $value['payed_time']);
|
|
|
|
|
}else {
|
|
|
|
|
$xlsData[$key]['payed_time'] = "-----";
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
// dd($xlsData);
|
|
|
|
|
break;
|
|
|
|
@ -2249,11 +2260,13 @@ class ExportController extends Controller
|
|
|
|
|
$xlsData = [];
|
|
|
|
|
foreach($data as $k => $v) {
|
|
|
|
|
if($v['tab'] == 'spend') {
|
|
|
|
|
$order_detail = M('spend', 'tab_')->field('extend,pay_time,user_account,promote_account,game_name,pay_amount,pay_way')->where(['pay_order_number' => $v['pay_order_number']])->find();
|
|
|
|
|
$order_detail = M('spend', 'tab_')->field('extend,pay_time,payed_time,user_account,promote_account,game_name,pay_amount,pay_way')->where(['pay_order_number' => $v['pay_order_number']])->find();
|
|
|
|
|
$re_data['pay_time'] = set_show_time($order_detail['pay_time']);
|
|
|
|
|
$re_data['payed_time'] = set_show_time($order_detail['payed_time']);
|
|
|
|
|
} elseif($v['tab'] == 'deposit') {
|
|
|
|
|
$order_detail = M('deposit', 'tab_')->field('create_time,user_account,promote_account,pay_amount,pay_way')->where(['pay_order_number' => $v['pay_order_number']])->find();
|
|
|
|
|
$order_detail = M('deposit', 'tab_')->field('create_time,payed_time,user_account,promote_account,pay_amount,pay_way')->where(['pay_order_number' => $v['pay_order_number']])->find();
|
|
|
|
|
$re_data['pay_time'] = set_show_time($order_detail['create_time']);
|
|
|
|
|
$re_data['payed_time'] = set_show_time($order_detail['payed_time']);
|
|
|
|
|
}
|
|
|
|
|
$re_data['extend'] = !empty($order_detail['extend']) ? $order_detail['extend'] : '-';
|
|
|
|
|
$re_data['user_account'] = $order_detail['user_account'];
|
|
|
|
@ -3692,6 +3705,7 @@ class ExportController extends Controller
|
|
|
|
|
array('pay_way' , "充值方式"),
|
|
|
|
|
array('recharge_ip' , "充值IP"),
|
|
|
|
|
array('create_time' , "充值时间"),
|
|
|
|
|
array('payed_time' , "支付时间"),
|
|
|
|
|
array('pay_status' , "订单状态"),
|
|
|
|
|
);
|
|
|
|
|
$xlsName = $_REQUEST['xlsname'];
|
|
|
|
@ -3699,6 +3713,11 @@ class ExportController extends Controller
|
|
|
|
|
foreach ($data as $key => $value) {
|
|
|
|
|
$data[$key]['pay_way'] = get_pay_way($value['pay_way']);
|
|
|
|
|
$data[$key]['create_time'] = date('Y-m-d H:i:s',$value['create_time']);
|
|
|
|
|
if ($value['pay_status'] == 1) {
|
|
|
|
|
$data[$key]['payed_time'] = date('Y-m-d H:i:s',$value['payed_time']);
|
|
|
|
|
}else {
|
|
|
|
|
$data[$key]['payed_time'] = "-----";
|
|
|
|
|
}
|
|
|
|
|
$data[$key]['pay_status'] = get_info_status($value['pay_status'],9);
|
|
|
|
|
}
|
|
|
|
|
$xlsData = $data;
|
|
|
|
|