删除后台行为功能模块

增加微信公众号功能模块
This commit is contained in:
2020-03-27 12:27:34 +08:00
parent 336f5af8ad
commit 02b17e0da8
6 changed files with 20 additions and 127 deletions

View File

@@ -144,7 +144,7 @@ class Menu extends Admin {
$map[] = ['id', '=', $id];
}
$result = MenuM::where($map)->delete()
$result = MenuM::where($map)->delete();
if (false !== $result) {
Cache::pull('admin_menu_list');
return $this->success('删除成功');

View File

@@ -8,35 +8,33 @@
// +----------------------------------------------------------------------
namespace app\controller\admin;
use app\controller\Admin;
use app\model\Wechat as WechatM;
/**
* @title 行为管理
* @description 行为管理
* @title 微信公众号
* @description 微信公众号管理
*/
class Action extends Admin {
class Wechat extends Admin {
/**
* @title 用户行为列表
* @title 公众号列表
* @author huajie <banhuajie@163.com>
*/
public function index() {
$map = array('status' => array('gt', -1));
// $map = array('status' => array('gt', -1));
$order = "id desc";
//获取列表数据
$list = model('Action')->where($map)->order($order)->paginate(10, false, array(
'query' => $this->request->param(),
));
// $order = "id desc";
// //获取列表数据
// $list = WechatM::where($map)->order($order)->paginate(10, false, array(
// 'query' => $this->request->param(),
// ));
// 记录当前列表页的cookie
Cookie('__forward__', $_SERVER['REQUEST_URI']);
$data = array(
'list' => $list,
'page' => $list->render(),
$this->data = array(
'list' => [],
'page' => '',
);
$this->assign($data);
$this->setMeta('用户行为');
return $this->fetch();
}