From 9b7f3d1104e72afd675af9cfc9a1f51c0c41504f Mon Sep 17 00:00:00 2001 From: chenzhi Date: Tue, 24 Dec 2019 15:35:53 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96csv=E5=AF=BC=E5=87=BA?= =?UTF-8?q?=E9=BB=98=E8=AE=A4=E4=B8=BA=E4=B8=8D=E8=BD=AC=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Application/Admin/Common/extend.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Application/Admin/Common/extend.php b/Application/Admin/Common/extend.php index 4b85bbb1f..899ff82ec 100644 --- a/Application/Admin/Common/extend.php +++ b/Application/Admin/Common/extend.php @@ -1748,7 +1748,8 @@ function data2csv(&$data,$title,$fields){ foreach ($data as $row) { $a = []; foreach($field as $k=>$v){ - $a[$v] = $row[$v] . "\t";//防止格式错误 + // $a[$v] = $row[$v] . "\t";//防止格式错误 + $a[$v] = $row[$v]; } if ($index == 10000) { //每次写入1000条数据清除内存 $index = 0;