|
|
@ -5,6 +5,17 @@ use Think\Controller;
|
|
|
|
|
|
|
|
|
|
|
|
class ExportController extends Controller
|
|
|
|
class ExportController extends Controller
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
|
|
* ExportController constructor.
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
public function __construct()
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
parent::__construct();
|
|
|
|
|
|
|
|
set_time_limit(0);
|
|
|
|
|
|
|
|
ini_set('memory_limit', '512M');
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public function exportExcel($expTitle, $expCellName, $expTableData)
|
|
|
|
public function exportExcel($expTitle, $expCellName, $expTableData)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
$xlsTitle = iconv('utf-8', 'gb2312', $expTitle);//文件名称
|
|
|
|
$xlsTitle = iconv('utf-8', 'gb2312', $expTitle);//文件名称
|
|
|
@ -38,7 +49,6 @@ class ExportController extends Controller
|
|
|
|
//导出Excel
|
|
|
|
//导出Excel
|
|
|
|
function expUser($id)
|
|
|
|
function expUser($id)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
ini_set("memory_limit","256M"); //升级为256M内存
|
|
|
|
|
|
|
|
$xlsName = $_REQUEST['xlsname'];
|
|
|
|
$xlsName = $_REQUEST['xlsname'];
|
|
|
|
switch ($id) {
|
|
|
|
switch ($id) {
|
|
|
|
case 1:
|
|
|
|
case 1:
|
|
|
@ -5563,8 +5573,8 @@ if ($key == 'model'){
|
|
|
|
|
|
|
|
|
|
|
|
function gameFinanceDetail() {
|
|
|
|
function gameFinanceDetail() {
|
|
|
|
|
|
|
|
|
|
|
|
set_time_limit(0);
|
|
|
|
// set_time_limit(0);
|
|
|
|
ini_set('memory_limit', '512M');
|
|
|
|
// ini_set('memory_limit', '512M');
|
|
|
|
$month = I("game_name");
|
|
|
|
$month = I("game_name");
|
|
|
|
$xlsName = $month.'充值流水';
|
|
|
|
$xlsName = $month.'充值流水';
|
|
|
|
|
|
|
|
|
|
|
|