diff --git a/service/app/admin/controller/QaController.php b/service/app/admin/controller/QaController.php index a9ba518f..95e4117e 100644 --- a/service/app/admin/controller/QaController.php +++ b/service/app/admin/controller/QaController.php @@ -103,7 +103,7 @@ class QaController extends base { $post = $request->post(); if (empty($post['id'])) return $this->error(2001, 'id data cannot be empty!'); - $qaQuestion = $post['qaQuestions']; + $qaQuestion = $post['qaQuestions'] ?? null; unset($post['create_time']); unset($post['update_time']); unset($post['qaQuestions']);