afa 9 月之前
父节点
当前提交
a8cf1b4f5a
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      application/admin/controller/product/Lists.php

+ 2 - 1
application/admin/controller/product/Lists.php

@@ -251,7 +251,8 @@ class Lists extends Backend
                 //列字段
                 for ($currentColumn = 2; $currentColumn <= 5; $currentColumn++) {
                     $val = $currentSheet->getCellByColumnAndRow($currentColumn, $currentRow)->getValue();
-                    $values[] = is_null($val) ? '' : $val;
+                    if(is_null($val)) continue;
+                    $values[] = $val;
                 }
                 $field =  implode('-', $values);
                 $row = $importregion::where('name', $field)->find();