cqp hace 4 meses
padre
commit
20420d5224
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      app/Service/Service.php

+ 1 - 1
app/Service/Service.php

@@ -927,7 +927,7 @@ class Service
     }
     }
 
 
     public function checkArrayRepeat($data, $column, $title = ""){
     public function checkArrayRepeat($data, $column, $title = ""){
-        $ids = array_column($data[$column], $column);
+        $ids = array_column($data, $column);
 
 
         // 检查空值
         // 检查空值
         if (in_array('', $ids, true) || in_array(null, $ids, true)) {
         if (in_array('', $ids, true) || in_array(null, $ids, true)) {