cqpCow 1 年之前
父节点
当前提交
4d5c2cc31a
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      app/Service/ImportService.php

+ 1 - 1
app/Service/ImportService.php

@@ -616,7 +616,7 @@ class ImportService extends Service
             $rowData = array_filter($value);
             if (empty($rowData)) {
                 unset($array[$key]);
-            } elseif(empty($value[0]) || empty($value[1]) || empty($value[2]) || empty($value[3]) || empty($value[4]) || empty($value[5]) || empty($value[6])) {
+            } elseif(empty($value[0]) || empty($value[1]) || empty($value[2]) || empty($value[3]) || empty($value[4]) || empty($value[5]) || $value[6] === null) {
                 return [false, '带*号的字段项必填'];
             }else{
                 foreach ($value as $k => $v){