diff --git a/service/app/admin/controller/QaController.php b/service/app/admin/controller/QaController.php index 3f41dbd1..0496fa63 100644 --- a/service/app/admin/controller/QaController.php +++ b/service/app/admin/controller/QaController.php @@ -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);