dever 6 years ago
parent
commit
95ee21576a
1 changed files with 14 additions and 0 deletions
  1. 14 0
      KIF/Dao/AbstractDao.class.php

+ 14 - 0
KIF/Dao/AbstractDao.class.php

@@ -286,6 +286,20 @@ abstract class AbstractDao {
         if (!$result) {
             return false;
         }
+
+        foreach ($result as & $tmpV) {
+            $tmpExtend = array();
+            $tmpExtend = unserialize($tmpV['extend']);
+            unset($tmpV['extend']);
+
+            # 将存在扩展字段里的信息提出来
+            if (is_array($tmpExtend)) foreach ($tmpExtend as $tmpKK => $tmpVV) {
+                if (!in_array($tmpKK, $this->real_field)) {
+                    $tmpV[$tmpKK] = $tmpVV;
+                }
+            }
+        }
+
         return $result;
     }