mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2025-05-22 06:49:15 +08:00
[更新]简化代码,优化结构
This commit is contained in:
parent
e1f6ae208e
commit
3380919111
@ -14,6 +14,7 @@
|
|||||||
namespace app\wechat\controller;
|
namespace app\wechat\controller;
|
||||||
|
|
||||||
use controller\BasicAdmin;
|
use controller\BasicAdmin;
|
||||||
|
use service\LogService;
|
||||||
use service\ToolsService;
|
use service\ToolsService;
|
||||||
use think\Db;
|
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) {
|
if (Db::name($this->table)->where('1=1')->delete() !== false && Db::name($this->table)->insertAll($data) !== false) {
|
||||||
$result = $this->_push();
|
$result = $this->_push();
|
||||||
if ($result['status']) {
|
if ($result['status']) {
|
||||||
|
LogService::write('微信管理', '发布微信菜单成功');
|
||||||
$this->success('保存发布菜单成功!', '');
|
$this->success('保存发布菜单成功!', '');
|
||||||
}
|
}
|
||||||
$this->error('菜单发布失败,' . $result['errmsg']);
|
$this->error('菜单发布失败,' . $result['errmsg']);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user