后台-》平台币充值导出时间

master
liuweiwen 5 years ago
parent a150015972
commit 192ad84897

@ -1004,7 +1004,7 @@ class ExportController extends Controller
array('pay_amount', "充值平台币"), array('pay_amount', "充值平台币"),
array('pay_way', "充值方式", 'get_pay_way', '*'), array('pay_way', "充值方式", 'get_pay_way', '*'),
array('pay_ip', "充值ip"), array('pay_ip', "充值ip"),
array('create_time', "充值时间", 'time_format'), array('create_time', "充值时间"),
array('pay_status', L('Order_status'), 'get_info_status', '*', '9'), array('pay_status', L('Order_status'), 'get_info_status', '*', '9'),
array('', "共计充值{$total}"), array('', "共计充值{$total}"),
); );
@ -1012,6 +1012,10 @@ class ExportController extends Controller
->where($map) ->where($map)
->order('id DESC') ->order('id DESC')
->select(); ->select();
foreach ($xlsData as $key => $value) {
$xlsData[$key]['create_time'] = date('Y-m-d H:i:s', $value['create_time']);
}
// dd($xlsData);
break; break;
case 9: case 9:
$xlsName = $xlsName?$xlsName:"平台币发放"; $xlsName = $xlsName?$xlsName:"平台币发放";
@ -1542,6 +1546,7 @@ class ExportController extends Controller
$xlsName = $xlsCell = $xlsData = []; $xlsName = $xlsCell = $xlsData = [];
} }
//数据处理 //数据处理
foreach ($xlsData as $key => $val) { foreach ($xlsData as $key => $val) {
foreach ($xlsCell as $k => $v) { foreach ($xlsCell as $k => $v) {

@ -375,7 +375,7 @@ class IndexController extends BaseController {
S('index_reco',$reco); S('index_reco',$reco);
} }
} }
$reco=game_merge($reco,$model['map']); $reco = game_merge($reco,$model['map']);
$this->assign('recommend',$reco); $this->assign('recommend',$reco);

Loading…
Cancel
Save