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 {