正在显示
1 个修改的文件
包含
1 行增加
和
1 行删除
| @@ -95,12 +95,12 @@ class InquiryLogic extends BaseLogic | @@ -95,12 +95,12 @@ class InquiryLogic extends BaseLogic | ||
| 95 | ->select($fields)->orderBy('id', 'desc')->paginate($page_size, ['*'], 'page', $page); | 95 | ->select($fields)->orderBy('id', 'desc')->paginate($page_size, ['*'], 'page', $page); |
| 96 | $data = $lists->toArray(); | 96 | $data = $lists->toArray(); |
| 97 | foreach ($data['list'] as &$v){ | 97 | foreach ($data['list'] as &$v){ |
| 98 | - $v = array_merge($v, $v['data']); | ||
| 99 | foreach ($v['data'] as &$field){ | 98 | foreach ($v['data'] as &$field){ |
| 100 | if(is_array($field) && !empty($field['path'])){ | 99 | if(is_array($field) && !empty($field['path'])){ |
| 101 | $field['path'] = getImageUrl($field['path']); | 100 | $field['path'] = getImageUrl($field['path']); |
| 102 | } | 101 | } |
| 103 | } | 102 | } |
| 103 | + $v = array_merge($v, $v['data']); | ||
| 104 | } | 104 | } |
| 105 | return $this->success($data); | 105 | return $this->success($data); |
| 106 | } | 106 | } |
-
请 注册 或 登录 后发表评论