From c21cf7f12702e9668021d539f0ea98126147ab7c Mon Sep 17 00:00:00 2001 From: yaosen <741606767@qq.com> Date: Mon, 1 Jul 2024 16:03:54 +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 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']);