瀏覽代碼

Fixed:字段命名问题

zjh 1 月之前
父節點
當前提交
8365657d32
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/Driver/Entity/Base.php

+ 1 - 1
src/Driver/Entity/Base.php

@@ -274,7 +274,7 @@ class Base {
             if(is_callable($item['func'])) {
                 $subWhere = call_user_func($item['func'], $where, $item['args']);
                 foreach ($subWhere as $key => $value) {
-                    if(is_array($value)) {
+                    if(!preg_match("/[0-9]/", $key) && is_array($value) && count($value, 1) != count($value)) {
                         foreach ($value as $k => $v) {
                             if($this->alias != "") {
                                 if(!preg_match("/^[a-zA-Z_]\./", $k)) {