From 49b472e08028f9c9e02e3f76dac03595db56b804 Mon Sep 17 00:00:00 2001 From: karl Date: Thu, 1 Aug 2024 16:08:25 +0800 Subject: [PATCH] Qa --- service/app/admin/controller/QaController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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);