This commit is contained in:
karl 2024-08-01 16:08:25 +08:00
parent b1656b092f
commit 49b472e080
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'] = explode(',', $item['img_zip']);
$item['trip_zip'] = explode(',', $item['trip_zip']);
$item['img_zip'] = $item['img_zip'] ? explode(',', $item['img_zip']) : [];
$item['trip_zip'] = $item['trip_zip'] ? explode(',', $item['trip_zip']) : [];
}
return $this->success($list);