소스 검색

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)) {