作者 刘锟

产品导入

@@ -183,7 +183,7 @@ class ProjectImport extends Command @@ -183,7 +183,7 @@ class ProjectImport extends Command
183 protected function get_code_type($file) 183 protected function get_code_type($file)
184 { 184 {
185 $list = array('GBK', 'UTF-8'); 185 $list = array('GBK', 'UTF-8');
186 - $str = file_get_contents($file); 186 + $str = curl_c($file,false);
187 foreach ($list as $item) { 187 foreach ($list as $item) {
188 $tmp = mb_convert_encoding($str, $item, $item); 188 $tmp = mb_convert_encoding($str, $item, $item);
189 if (md5($tmp) == md5($str)) { 189 if (md5($tmp) == md5($str)) {