This commit is contained in:
jianghanbo 2024-08-09 11:16:21 +08:00
parent 404dd7fb8c
commit 04f4850b1c
1 changed files with 2 additions and 2 deletions

View File

@ -65,8 +65,8 @@ class QaController extends base
$list = $list->paginate($request->get('limit',10))->toArray();
foreach ($list['data'] as &$item) {
$item['img_zip'] = json_decode($item['img_zip'], true);
$item['trip_zip'] = json_decode($item['trip_zip'], true);
$item['img_zip'] = $item['img_zip'] ? explode(',', $item['img_zip']) : [];
$item['trip_zip'] = $item['trip_zip'] ? explode(',', $item['trip_zip']) : [];
}
return $this->success($list);