phpoffice/phpspreadsheet 下载文件
use PhpOffice\PhpSpreadsheet\IOFactory ; use PhpOffice\PhpSpreadsheet\Cell\Coordinate ; use PhpOffice\PhpSpreadsheet\Spreadsheet ; use PhpOffice\PhpSpreadsheet\Writer\Xlsx ; $spreadsheet = new Spreadsheet (); $objSheet = $spreadsheet -> getActiveSheet (); //获取当前操作sheet的对象 $objSheet -> setCellValue ( 'A1' , '团长' ) -> setCellValue ( 'B1' , '申请时间' ) -> setCellValue ( 'C1' , '提现方式' ) -> setCellValue ( 'D1' , '帐号' ) -> setCellValue ( 'E1' , '姓名' ) -> setCellValue ( 'F1' , '电话' ) -> setCellValue ( 'G1' , '提现金额' ); $i = 2 ; if ( $list ){ foreach ( $list as $key => $val ) { switch ( $val -> wd_type ){