Browse Source

[更新]简化代码,优化结构

邹景立 8 years ago
parent
commit
3380919111
1 changed files with 2 additions and 0 deletions
  1. 2 0
      application/wechat/controller/Menu.php

+ 2 - 0
application/wechat/controller/Menu.php

@@ -14,6 +14,7 @@
 namespace app\wechat\controller;
 
 use controller\BasicAdmin;
+use service\LogService;
 use service\ToolsService;
 use think\Db;
 
@@ -84,6 +85,7 @@ class Menu extends BasicAdmin {
             if (Db::name($this->table)->where('1=1')->delete() !== false && Db::name($this->table)->insertAll($data) !== false) {
                 $result = $this->_push();
                 if ($result['status']) {
+                    LogService::write('微信管理', '发布微信菜单成功');
                     $this->success('保存发布菜单成功!', '');
                 }
                 $this->error('菜单发布失败,' . $result['errmsg']);