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() { }