From efd63b2d69eb7ccc95e30d248cb719375edcb3f9 Mon Sep 17 00:00:00 2001 From: liyang Date: Thu, 21 Nov 2024 13:15:48 +0800 Subject: [PATCH] * [task#133161] add delete method. --- module/system/control.php | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/module/system/control.php b/module/system/control.php index 7591617b56..4bbc0dce4d 100644 --- a/module/system/control.php +++ b/module/system/control.php @@ -665,4 +665,20 @@ class system extends control $this->loadModel('action')->create('system', $id, 'inactive'); $this->sendSuccess(array('load' => true)); } + + /** + * 删除应用。 + * Delete application. + * + * @param int $id + * @access public + * @return void + */ + public function delete(int $id) + { + $this->system->delete(TABLE_SYSTEM, $id); + + if(dao::isError()) return $this->sendError(dao::getError()); + $this->sendSuccess(array('load' => true)); + } }