From d68a97ec12636997ec80f75da76dcf6669f2033e Mon Sep 17 00:00:00 2001 From: wangyidong Date: Fri, 12 Oct 2018 15:27:05 +0800 Subject: [PATCH] * adjust for import case use csv. --- module/testcase/control.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/testcase/control.php b/module/testcase/control.php index ef2b0e28d2..812a608e2b 100644 --- a/module/testcase/control.php +++ b/module/testcase/control.php @@ -1297,7 +1297,7 @@ class testcase extends control $columnKey[] = $fields[$title]; } - if(count($columnKey) == 0 or $this->post->encode != 'utf-8') + if(count($columnKey) <= 3 or $this->post->encode != 'utf-8') { $fc = file_get_contents($fileName); $encode = $this->post->encode != "utf-8" ? $this->post->encode : 'gbk';