From 5281569ff5944e4cc6e4e3e934fb1ff1c5e6d23d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E6=99=AF=E7=AB=8B?= Date: Fri, 21 Apr 2017 13:14:02 +0800 Subject: [PATCH] =?UTF-8?q?[=E6=9B=B4=E6=96=B0]=E5=BE=AE=E4=BF=A1=E5=85=B3?= =?UTF-8?q?=E9=94=AE=E5=AD=97=E7=AE=A1=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/wechat/controller/Keys.php | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/application/wechat/controller/Keys.php b/application/wechat/controller/Keys.php index b67680460..3c056aabe 100644 --- a/application/wechat/controller/Keys.php +++ b/application/wechat/controller/Keys.php @@ -14,6 +14,7 @@ namespace app\wechat\controller; use controller\BasicAdmin; +use service\DataService; use think\Db; /** @@ -65,6 +66,16 @@ class Keys extends BasicAdmin { return $this->_form($this->table, 'form', 'id'); } + /** + * 删除关键字 + */ + public function del() { + if (DataService::update($this->table)) { + $this->success("关键字删除成功!", ''); + } + $this->error("关键字删除失败,请稍候再试!"); + } + public function subscribe() { }