From df0fd9a47a58a0d6ddc9dfcde222ad0f66c96bc3 Mon Sep 17 00:00:00 2001 From: evoxwht <442384644@qq.com> Date: Wed, 12 Apr 2023 09:27:08 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E6=95=B0=E6=8D=AE=E5=BA=93?= =?UTF-8?q?=E5=A4=87=E6=B3=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- crmeb/app/adminapi/controller/v1/system/SystemDatabackup.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/crmeb/app/adminapi/controller/v1/system/SystemDatabackup.php b/crmeb/app/adminapi/controller/v1/system/SystemDatabackup.php index 3d690dbd7..2ed4e0dd5 100644 --- a/crmeb/app/adminapi/controller/v1/system/SystemDatabackup.php +++ b/crmeb/app/adminapi/controller/v1/system/SystemDatabackup.php @@ -63,13 +63,14 @@ class SystemDatabackup extends AuthController */ public function updateMark() { - [$table, $field, $type, $mark] = $this->request->postMore([ + [$table, $field, $type, $mark, $is_field] = $this->request->postMore([ ['table', ''], ['field', ''], ['type', ''], ['mark', ''], + ['is_field', 0], ], true); - if ($field == '') { + if ($is_field == 0) { $sql = "ALTER TABLE $table COMMENT '$mark'"; } else { $sql = "ALTER TABLE $table MODIFY COLUMN $field $type COMMENT '$mark'";