This commit is contained in:
jianghanbo 2024-08-09 15:38:49 +08:00
parent acae916e3f
commit e7e757dbfc
1 changed files with 6 additions and 2 deletions

View File

@ -77,9 +77,13 @@ class QaController extends base
$list = $list->paginate($request->get('limit',10))->toArray(); $list = $list->paginate($request->get('limit',10))->toArray();
foreach ($list['data'] as &$item) { foreach ($list['data'] as &$item) {
if (isset($item['img_zip']) && !empty($item['img_zip'])) {
$item['img_zip'] = json_decode($item['img_zip'], true); $item['img_zip'] = json_decode($item['img_zip'], true);
}
if (isset($item['trip_zip']) && !empty($item['trip_zip'])) {
$item['trip_zip'] = json_decode($item['trip_zip'], true); $item['trip_zip'] = json_decode($item['trip_zip'], true);
} }
}
return $this->success($list); return $this->success($list);
} }