diff --git a/service/app/admin/controller/QaController.php b/service/app/admin/controller/QaController.php index c3f25b65..d02d2064 100644 --- a/service/app/admin/controller/QaController.php +++ b/service/app/admin/controller/QaController.php @@ -114,7 +114,13 @@ class QaController extends base } $qaQuestion = $post['qaQuestions'] ?? null; - unset($post['qaQuestions'], $post['update_time']); + unset($post['qaQuestions']); + if (isset($post['update_time'])) { + unset($post['update_time']); + } + if (isset($post['update_time'])) { + unset($post['id']); + } $post['create_time'] = time(); try {