浏览代码

fixed json deserializeValue

develop
Robin Thoni 9 年前
父节点
当前提交
182a48c10f
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2
    2
      src/Utils/Dbo/LuDbo.php

+ 2
- 2
src/Utils/Dbo/LuDbo.php 查看文件

101
             }
101
             }
102
             $type = substr($type, 0, strlen($type) - 2);
102
             $type = substr($type, 0, strlen($type) - 2);
103
             $data = [];
103
             $data = [];
104
-            foreach ($value as $v) {
104
+            foreach ($value as $key => $v) {
105
                 $value = self::deserializeValue($v, $type, $constraints);
105
                 $value = self::deserializeValue($v, $type, $constraints);
106
-                $data[] = $value;
106
+                $data[$key] = $value;
107
             }
107
             }
108
             return $data;
108
             return $data;
109
         }
109
         }

正在加载...
取消
保存