From 401c734ab931c89e153f53b331bd231ff80eb434 Mon Sep 17 00:00:00 2001 From: yaosen <741606767@qq.com> Date: Mon, 1 Jul 2024 16:05:56 +0800 Subject: [PATCH] a --- service/app/admin/controller/QaController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/service/app/admin/controller/QaController.php b/service/app/admin/controller/QaController.php index 95e4117e..62958d45 100644 --- a/service/app/admin/controller/QaController.php +++ b/service/app/admin/controller/QaController.php @@ -75,7 +75,7 @@ class QaController extends base if (empty($post['city_id'])) return $this->error(2001, 'city_id data cannot be empty!'); if (empty($post['title'])) return $this->error(2001, 'title data cannot be empty!'); - $qaQuestion = $post['qaQuestions']; + $qaQuestion = $post['qaQuestions'] ?? null; unset($post['qaQuestions']); try {