数据库字符集调整为 utf8mb4,支持存储手机输入法的表情等特殊字符。优化菜单节点的调用方法,调整管理员操作日志等。
This commit is contained in:
parent
a263870661
commit
860dcee868
@ -216,6 +216,9 @@ function add_log($type, $param_id = '', $param = [])
|
||||
case 'delete':
|
||||
$title = '删除';
|
||||
break;
|
||||
case 'check':
|
||||
$title = '审核';
|
||||
break;
|
||||
default:
|
||||
$title = '未知';
|
||||
break;
|
||||
@ -226,23 +229,21 @@ function add_log($type, $param_id = '', $param = [])
|
||||
$session_admin = get_config('app.session_admin');
|
||||
$login_admin = \think\facade\Session::get($session_admin);
|
||||
}
|
||||
|
||||
$content = $login_admin['nickname'] . '在' . date('Y-m-d H:i:s') . '执行了' . $title . '操作';
|
||||
$data = [];
|
||||
$data['uid'] = $login_admin['id'];
|
||||
$data['nickname'] = $login_admin['nickname'];
|
||||
$data['type'] = $type;
|
||||
$data['title'] = $title;
|
||||
$data['content'] = $content;
|
||||
$data['param_id'] = $param_id;
|
||||
$data['param'] = json_encode($param);
|
||||
$data['module'] = \think\facade\App::initialize()->http->getName();
|
||||
$data['controller'] = app('request')->controller();
|
||||
$data['controller'] = strtolower(app('request')->controller());
|
||||
$data['function'] = app('request')->action();
|
||||
$parameter = $data['module'] . '/' .$data['controller'] . '/' . $data['function'];
|
||||
$data['rule_menu'] = $parameter;
|
||||
$data['title'] = \think\facade\Db::name('admin_rule')->where(array('src' => $parameter))->value('title') ?? $title;
|
||||
$content = $login_admin['nickname'] . '在' . date('Y-m-d H:i:s') . '执行了' . $data['title'] . '操作';
|
||||
$data['content'] = $content;
|
||||
$data['ip'] = app('request')->ip();
|
||||
$data['create_time'] = time();
|
||||
$parameter = $data['controller'] . '/' . $data['function'];
|
||||
$data['rule_menu'] = $parameter;
|
||||
$data['admin_menu'] = \think\facade\Db::name('admin_rule')->where(array('title' => $parameter))->value('title') ?? $title;
|
||||
\think\facade\Db::name('admin_log')->strict(false)->field(true)->insert($data);
|
||||
}
|
||||
|
@ -15,28 +15,27 @@ class Admin extends BaseController
|
||||
{
|
||||
public function index()
|
||||
{
|
||||
return view();
|
||||
}
|
||||
|
||||
//管理员列表
|
||||
public function get_list()
|
||||
{
|
||||
$param = get_params();
|
||||
$where = array();
|
||||
if (!empty($param['keywords'])) {
|
||||
$where[] = ['id|username|nickname|desc|mobile', 'like', '%' . $param['keywords'] . '%'];
|
||||
if (request()->isAjax()) {
|
||||
$param = get_params();
|
||||
$where = array();
|
||||
if (!empty($param['keywords'])) {
|
||||
$where[] = ['id|username|nickname|desc|mobile', 'like', '%' . $param['keywords'] . '%'];
|
||||
}
|
||||
$rows = empty($param['limit']) ? get_config(app . page_size) : $param['limit'];
|
||||
$admin = AdminList::where($where)
|
||||
->order('create_time asc')
|
||||
->paginate($rows, false, ['query' => $param])
|
||||
->each(function ($item, $key) {
|
||||
$groupId = Db::name('AdminGroupAccess')->where(['uid' => $item->id])->column('group_id');
|
||||
$groupName = Db::name('AdminGroup')->where('id', 'in', $groupId)->column('title');
|
||||
$item->groupName = implode(',', $groupName);
|
||||
$item->last_login_time = empty($item->last_login_time) ? '-' : date('Y-m-d H:i', $item->last_login_time);
|
||||
});
|
||||
return table_assign(1, '', $admin);
|
||||
}
|
||||
$rows = empty($param['limit']) ? get_config(app . page_size) : $param['limit'];
|
||||
$admin = AdminList::where($where)
|
||||
->order('create_time asc')
|
||||
->paginate($rows, false, ['query' => $param])
|
||||
->each(function ($item, $key) {
|
||||
$groupId = Db::name('AdminGroupAccess')->where(['uid' => $item->id])->column('group_id');
|
||||
$groupName = Db::name('AdminGroup')->where('id', 'in', $groupId)->column('title');
|
||||
$item->groupName = implode(',', $groupName);
|
||||
$item->last_login_time = empty($item->last_login_time) ? '-' : date('Y-m-d H:i', $item->last_login_time);
|
||||
});
|
||||
return table_assign(1, '', $admin);
|
||||
else{
|
||||
return view();
|
||||
}
|
||||
}
|
||||
|
||||
//添加
|
||||
@ -219,45 +218,45 @@ class Admin extends BaseController
|
||||
}
|
||||
}
|
||||
|
||||
//管理员操作日志
|
||||
public function log()
|
||||
{
|
||||
return view();
|
||||
}
|
||||
|
||||
//系统操作列表
|
||||
public function get_log_list()
|
||||
{
|
||||
$param = get_params();
|
||||
$where = array();
|
||||
if (!empty($param['keywords'])) {
|
||||
$where[] = ['nickname|admin_menu|param_id', 'like', '%' . $param['keywords'] . '%'];
|
||||
}
|
||||
if (!empty($param['title_cate'])) {
|
||||
$where['title'] = $param['title_cate'];
|
||||
}
|
||||
if (!empty($param['admin_menu'])) {
|
||||
$where['admin_menu'] = $param['admin_menu'];
|
||||
}
|
||||
$rows = empty($param['limit']) ? get_config(app . page_size) : $param['limit'];
|
||||
$content = DB::name('admin_log')
|
||||
->field("id,uid,nickname,title,content,admin_menu,ip,param_id,param,FROM_UNIXTIME(create_time,'%Y-%m-%d %H:%i:%s') create_time")
|
||||
->order('create_time desc')
|
||||
->where($where)
|
||||
->paginate($rows, false, ['query' => $param]);
|
||||
$content->toArray();
|
||||
foreach ($content as $k => $v) {
|
||||
$data = $v;
|
||||
$param_array = json_decode($v['param'], true);
|
||||
$param_value = '';
|
||||
foreach ($param_array as $key => $value) {
|
||||
if (is_array($value)) {
|
||||
$value = implode(',', $value);
|
||||
}
|
||||
$param_value .= $key . ':' . $value . ' | ';
|
||||
if (request()->isAjax()) {
|
||||
$param = get_params();
|
||||
$where = array();
|
||||
if (!empty($param['keywords'])) {
|
||||
$where[] = ['nickname|admin_menu|param_id', 'like', '%' . $param['keywords'] . '%'];
|
||||
}
|
||||
$data['param'] = $param_value;
|
||||
$content->offsetSet($k, $data);
|
||||
if (!empty($param['title_cate'])) {
|
||||
$where['title'] = $param['title_cate'];
|
||||
}
|
||||
if (!empty($param['admin_menu'])) {
|
||||
$where['admin_menu'] = $param['admin_menu'];
|
||||
}
|
||||
$rows = empty($param['limit']) ? get_config(app . page_size) : $param['limit'];
|
||||
$content = DB::name('admin_log')
|
||||
->field("id,uid,nickname,title,content,admin_menu,ip,param_id,param,FROM_UNIXTIME(create_time,'%Y-%m-%d %H:%i:%s') create_time")
|
||||
->order('create_time desc')
|
||||
->where($where)
|
||||
->paginate($rows, false, ['query' => $param]);
|
||||
$content->toArray();
|
||||
foreach ($content as $k => $v) {
|
||||
$data = $v;
|
||||
$param_array = json_decode($v['param'], true);
|
||||
$param_value = '';
|
||||
foreach ($param_array as $key => $value) {
|
||||
if (is_array($value)) {
|
||||
$value = implode(',', $value);
|
||||
}
|
||||
$param_value .= $key . ':' . $value . ' | ';
|
||||
}
|
||||
$data['param'] = $param_value;
|
||||
$content->offsetSet($k, $data);
|
||||
}
|
||||
return table_assign(1, '', $content);
|
||||
}
|
||||
return table_assign(1, '', $content);
|
||||
else{
|
||||
return view();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -17,14 +17,13 @@ class Article extends BaseController
|
||||
{
|
||||
public function cate()
|
||||
{
|
||||
return view();
|
||||
}
|
||||
|
||||
//文章分类列表
|
||||
public function cate_list()
|
||||
{
|
||||
$cate = Db::name('ArticleCate')->order('create_time asc')->select();
|
||||
return to_assign(0, '', $cate);
|
||||
if (request()->isAjax()) {
|
||||
$cate = Db::name('ArticleCate')->order('create_time asc')->select();
|
||||
return to_assign(0, '', $cate);
|
||||
}
|
||||
else{
|
||||
return view();
|
||||
}
|
||||
}
|
||||
|
||||
//文章分类添加
|
||||
@ -94,29 +93,28 @@ class Article extends BaseController
|
||||
|
||||
public function index()
|
||||
{
|
||||
return view();
|
||||
}
|
||||
|
||||
//文章列表
|
||||
public function get_list()
|
||||
{
|
||||
$param = get_params();
|
||||
$where = array();
|
||||
if (!empty($param['keywords'])) {
|
||||
$where[] = ['a.id|a.title|a.keywords|a.desc|a.content|w.title', 'like', '%' . $param['keywords'] . '%'];
|
||||
if (request()->isAjax()) {
|
||||
$param = get_params();
|
||||
$where = array();
|
||||
if (!empty($param['keywords'])) {
|
||||
$where[] = ['a.id|a.title|a.keywords|a.desc|a.content|w.title', 'like', '%' . $param['keywords'] . '%'];
|
||||
}
|
||||
if (!empty($param['article_cate_id'])) {
|
||||
$where[] = ['a.article_cate_id', '=', $param['article_cate_id']];
|
||||
}
|
||||
$where[] = ['a.status', '>=', 0];
|
||||
$rows = empty($param['limit']) ? get_config(app . page_size) : $param['limit'];
|
||||
$content = ArticleList::where($where)
|
||||
->field('*,w.id as cate_id,a.id as id,w.title as cate_title,a.title as title')
|
||||
->alias('a')
|
||||
->join('article_cate w', 'a.article_cate_id = w.id')
|
||||
->order('a.create_time desc')
|
||||
->paginate($rows, false, ['query' => $param]);
|
||||
return table_assign(1, '', $content);
|
||||
}
|
||||
if (!empty($param['article_cate_id'])) {
|
||||
$where[] = ['a.article_cate_id', '=', $param['article_cate_id']];
|
||||
}
|
||||
$where[] = ['a.status', '>=', 0];
|
||||
$rows = empty($param['limit']) ? get_config(app . page_size) : $param['limit'];
|
||||
$content = ArticleList::where($where)
|
||||
->field('*,w.id as cate_id,a.id as id,w.title as cate_title,a.title as title')
|
||||
->alias('a')
|
||||
->join('article_cate w', 'a.article_cate_id = w.id')
|
||||
->order('a.create_time desc')
|
||||
->paginate($rows, false, ['query' => $param]);
|
||||
return table_assign(1, '', $content);
|
||||
else{
|
||||
return view();
|
||||
}
|
||||
}
|
||||
|
||||
//文章添加&&编辑
|
||||
|
@ -13,19 +13,19 @@ class Conf extends BaseController
|
||||
{
|
||||
public function index()
|
||||
{
|
||||
return view();
|
||||
}
|
||||
|
||||
public function get_list()
|
||||
{
|
||||
$param = get_params();
|
||||
$where = array();
|
||||
$where[] = ['status', '>=', 0];
|
||||
$rows = empty($param['limit']) ? get_config(app.page_size) : $param['limit'];
|
||||
$content = Db::name('config')
|
||||
->where($where)
|
||||
->paginate($rows, false, ['query' => $param]);
|
||||
return table_assign(1, '', $content);
|
||||
if (request()->isAjax()) {
|
||||
$param = get_params();
|
||||
$where = array();
|
||||
$where[] = ['status', '>=', 0];
|
||||
$rows = empty($param['limit']) ? get_config(app.page_size) : $param['limit'];
|
||||
$content = Db::name('config')
|
||||
->where($where)
|
||||
->paginate($rows, false, ['query' => $param]);
|
||||
return table_assign(1, '', $content);
|
||||
}
|
||||
else{
|
||||
return view();
|
||||
}
|
||||
}
|
||||
|
||||
//添加
|
||||
|
@ -13,23 +13,23 @@ class Keywords extends BaseController
|
||||
{
|
||||
public function index()
|
||||
{
|
||||
return view();
|
||||
}
|
||||
|
||||
public function get_list()
|
||||
{
|
||||
$param = get_params();
|
||||
$where = array();
|
||||
if (!empty($param['keywords'])) {
|
||||
$where[] = ['title','like', '%' . $param['keywords'] . '%'];
|
||||
if (request()->isAjax()) {
|
||||
$param = get_params();
|
||||
$where = array();
|
||||
if (!empty($param['keywords'])) {
|
||||
$where[] = ['title','like', '%' . $param['keywords'] . '%'];
|
||||
}
|
||||
$where[] = ['status', '>=', 0];
|
||||
$rows = empty($param['limit']) ? get_config(app . page_size) : $param['limit'];
|
||||
$content = Db::name('Keywords')
|
||||
->order('create_time desc')
|
||||
->where($where)
|
||||
->paginate($rows, false, ['query' => $param]);
|
||||
return table_assign(1, '', $content);
|
||||
}
|
||||
$where[] = ['status', '>=', 0];
|
||||
$rows = empty($param['limit']) ? get_config(app . page_size) : $param['limit'];
|
||||
$content = Db::name('Keywords')
|
||||
->order('create_time desc')
|
||||
->where($where)
|
||||
->paginate($rows, false, ['query' => $param]);
|
||||
return table_assign(1, '', $content);
|
||||
else{
|
||||
return view();
|
||||
}
|
||||
}
|
||||
|
||||
//添加
|
||||
|
@ -14,16 +14,13 @@ class Menu extends BaseController
|
||||
{
|
||||
public function index()
|
||||
{
|
||||
|
||||
return view();
|
||||
}
|
||||
|
||||
//菜单列表
|
||||
|
||||
public function get_list()
|
||||
{
|
||||
$menu = Db::name('AdminMenu')->order('sort asc')->select();
|
||||
return to_assign(0, '', $menu);
|
||||
if (request()->isAjax()) {
|
||||
$menu = Db::name('AdminMenu')->order('sort asc')->select();
|
||||
return to_assign(0, '', $menu);
|
||||
}
|
||||
else{
|
||||
return view();
|
||||
}
|
||||
}
|
||||
|
||||
//添加菜单页面
|
||||
|
@ -16,27 +16,24 @@ class Nav extends BaseController
|
||||
{
|
||||
public function index()
|
||||
{
|
||||
return view();
|
||||
}
|
||||
|
||||
//列表
|
||||
|
||||
public function get_list()
|
||||
{
|
||||
$param = get_params();
|
||||
$where = array();
|
||||
if (!empty($param['keywords'])) {
|
||||
$where[] = ['id|name|title|desc', 'like', '%' . $param['keywords'] . '%'];
|
||||
if (request()->isAjax()) {
|
||||
$param = get_params();
|
||||
$where = array();
|
||||
if (!empty($param['keywords'])) {
|
||||
$where[] = ['id|name|title|desc', 'like', '%' . $param['keywords'] . '%'];
|
||||
}
|
||||
$rows = empty($param['limit']) ? get_config(app . page_size) : $param['limit'];
|
||||
$nav = NavList::where($where)
|
||||
->order('create_time asc')
|
||||
->paginate($rows, false, ['query' => $param]);
|
||||
return table_assign(1, '', $nav);
|
||||
}
|
||||
$rows = empty($param['limit']) ? get_config(app . page_size) : $param['limit'];
|
||||
$nav = NavList::where($where)
|
||||
->order('create_time asc')
|
||||
->paginate($rows, false, ['query' => $param]);
|
||||
return table_assign(1, '', $nav);
|
||||
else{
|
||||
return view();
|
||||
}
|
||||
}
|
||||
|
||||
//添加
|
||||
|
||||
public function add()
|
||||
{
|
||||
$id = empty(get_params('id')) ? 0 : get_params('id');
|
||||
@ -49,7 +46,6 @@ class Nav extends BaseController
|
||||
}
|
||||
|
||||
//提交添加
|
||||
|
||||
public function post_submit()
|
||||
{
|
||||
if (request()->isAjax()) {
|
||||
@ -86,7 +82,6 @@ class Nav extends BaseController
|
||||
}
|
||||
|
||||
//删除
|
||||
|
||||
public function delete()
|
||||
{
|
||||
$id = get_params('id');
|
||||
@ -107,28 +102,26 @@ class Nav extends BaseController
|
||||
}
|
||||
|
||||
//管理导航
|
||||
|
||||
public function nav_info()
|
||||
{
|
||||
return view('', [
|
||||
'nav_id' => get_params('id'),
|
||||
]);
|
||||
}
|
||||
$param = get_params();
|
||||
if (request()->isAjax()) {
|
||||
$id = $param['id'];
|
||||
$navInfoList = Db::name('NavInfo')
|
||||
->where(['nav_id' => $id])
|
||||
->order('sort asc')
|
||||
->select();
|
||||
return to_assign(0, '', $navInfoList);
|
||||
}
|
||||
else{
|
||||
return view('', [
|
||||
'nav_id' => $param['id'],
|
||||
]);
|
||||
}
|
||||
|
||||
//导航列表
|
||||
|
||||
public function nav_info_list()
|
||||
{
|
||||
$id = get_params('id');
|
||||
$navInfoList = Db::name('NavInfo')
|
||||
->where(['nav_id' => $id])
|
||||
->order('sort asc')
|
||||
->select();
|
||||
return to_assign(0, '', $navInfoList);
|
||||
}
|
||||
|
||||
//添加导航
|
||||
|
||||
public function nav_info_add()
|
||||
{
|
||||
$id = empty(get_params('id')) ? 0 : get_params('id');
|
||||
@ -145,7 +138,6 @@ class Nav extends BaseController
|
||||
}
|
||||
|
||||
//保存添加
|
||||
|
||||
public function nav_info_submit()
|
||||
{
|
||||
if (request()->isAjax()) {
|
||||
@ -179,7 +171,6 @@ class Nav extends BaseController
|
||||
}
|
||||
|
||||
//删除
|
||||
|
||||
public function nav_info_delete()
|
||||
{
|
||||
$id = get_params('id');
|
||||
|
@ -14,22 +14,21 @@ class Role extends BaseController
|
||||
{
|
||||
public function index()
|
||||
{
|
||||
return view();
|
||||
}
|
||||
|
||||
//管理员列表
|
||||
public function get_list()
|
||||
{
|
||||
$param = get_params();
|
||||
$where = array();
|
||||
if (!empty($param['keywords'])) {
|
||||
$where[] = ['id|title|desc','like', '%' . $param['keywords'] . '%'];
|
||||
if (request()->isAjax()) {
|
||||
$param = get_params();
|
||||
$where = array();
|
||||
if (!empty($param['keywords'])) {
|
||||
$where[] = ['id|title|desc','like', '%' . $param['keywords'] . '%'];
|
||||
}
|
||||
$rows = empty($param['limit']) ? get_config(app.page_size) : $param['limit'];
|
||||
$group = AdminGroup::where($where)
|
||||
->order('create_time asc')
|
||||
->paginate($rows, false, ['query' => $param]);
|
||||
return table_assign(1, '', $group);
|
||||
}
|
||||
$rows = empty($param['limit']) ? get_config(app.page_size) : $param['limit'];
|
||||
$group = AdminGroup::where($where)
|
||||
->order('create_time asc')
|
||||
->paginate($rows, false, ['query' => $param]);
|
||||
return table_assign(1, '', $group);
|
||||
else{
|
||||
return view();
|
||||
}
|
||||
}
|
||||
|
||||
//添加&编辑
|
||||
|
@ -13,14 +13,13 @@ class Rule extends BaseController
|
||||
{
|
||||
public function index()
|
||||
{
|
||||
return view();
|
||||
}
|
||||
|
||||
//节点列表
|
||||
public function get_list()
|
||||
{
|
||||
$menu = Db::name('adminRule')->order('create_time asc')->select();
|
||||
return to_assign(0, '', $menu);
|
||||
if (request()->isAjax()) {
|
||||
$rule = Db::name('adminRule')->order('create_time asc')->select();
|
||||
return to_assign(0, '', $rule);
|
||||
}
|
||||
else{
|
||||
return view();
|
||||
}
|
||||
}
|
||||
|
||||
//添加
|
||||
|
@ -11,22 +11,22 @@ class Search extends BaseController
|
||||
{
|
||||
public function index()
|
||||
{
|
||||
return view();
|
||||
}
|
||||
|
||||
public function get_list()
|
||||
{
|
||||
$param = get_params();
|
||||
$where = array();
|
||||
if (!empty($param['keywords'])) {
|
||||
$where[] = ['title','like', '%' . $param['keywords'] . '%'];
|
||||
if (request()->isAjax()) {
|
||||
$param = get_params();
|
||||
$where = array();
|
||||
if (!empty($param['keywords'])) {
|
||||
$where[] = ['title','like', '%' . $param['keywords'] . '%'];
|
||||
}
|
||||
$rows = empty($param['limit']) ? get_config(app . page_size) : $param['limit'];
|
||||
$content = Db::name('SearchKeywords')
|
||||
->order('id desc')
|
||||
->where($where)
|
||||
->paginate($rows, false, ['query' => $param]);
|
||||
return table_assign(1, '', $content);
|
||||
}
|
||||
$rows = empty($param['limit']) ? get_config(app . page_size) : $param['limit'];
|
||||
$content = Db::name('SearchKeywords')
|
||||
->order('id desc')
|
||||
->where($where)
|
||||
->paginate($rows, false, ['query' => $param]);
|
||||
return table_assign(1, '', $content);
|
||||
else{
|
||||
return view();
|
||||
}
|
||||
}
|
||||
|
||||
//删除
|
||||
|
@ -16,23 +16,22 @@ class Sitemap extends BaseController
|
||||
{
|
||||
public function index()
|
||||
{
|
||||
return view();
|
||||
}
|
||||
|
||||
//列表
|
||||
public function get_list()
|
||||
{
|
||||
$param = get_params();
|
||||
$where = array();
|
||||
if (!empty($param['keywords'])) {
|
||||
$where[] = ['id|name', 'like', '%' . $param['keywords'] . '%'];
|
||||
if (request()->isAjax()) {
|
||||
$param = get_params();
|
||||
$where = array();
|
||||
if (!empty($param['keywords'])) {
|
||||
$where[] = ['id|name', 'like', '%' . $param['keywords'] . '%'];
|
||||
}
|
||||
$where[] = ['status','=',1];
|
||||
$rows = empty($param['limit']) ? get_config(app . page_size) : $param['limit'];
|
||||
$SitemapCate = SitemapCate::where($where)
|
||||
->order('sort desc, id desc')
|
||||
->paginate($rows, false, ['query' => $param]);
|
||||
return table_assign(1, '', $SitemapCate);
|
||||
}
|
||||
$where[] = ['status','=',1];
|
||||
$rows = empty($param['limit']) ? get_config(app . page_size) : $param['limit'];
|
||||
$SitemapCate = SitemapCate::where($where)
|
||||
->order('sort desc, id desc')
|
||||
->paginate($rows, false, ['query' => $param]);
|
||||
return table_assign(1, '', $SitemapCate);
|
||||
else{
|
||||
return view();
|
||||
}
|
||||
}
|
||||
|
||||
//添加
|
||||
@ -105,24 +104,23 @@ class Sitemap extends BaseController
|
||||
|
||||
//管理网站地图
|
||||
public function sitemap_info()
|
||||
{
|
||||
return view('', [
|
||||
'sitemap_cate_id' => get_params('id'),
|
||||
]);
|
||||
}
|
||||
|
||||
//网站地图列表
|
||||
public function sitemap_info_list()
|
||||
{
|
||||
$param = get_params();
|
||||
$where = array();
|
||||
$where[] = ['sitemap_cate_id','=',$param['id']];
|
||||
$where[] = ['status','>=',0];
|
||||
$rows = empty($param['limit']) ? get_config(app . page_size) : $param['limit'];
|
||||
$sitemap = SitemapInfo::where($where)
|
||||
->order('sort desc, id desc')
|
||||
->paginate($rows, false, ['query' => $param]);
|
||||
return table_assign(1, '', $sitemap);
|
||||
if (request()->isAjax()) {
|
||||
$where = array();
|
||||
$where[] = ['sitemap_cate_id','=',$param['id']];
|
||||
$where[] = ['status','>=',0];
|
||||
$rows = empty($param['limit']) ? get_config(app . page_size) : $param['limit'];
|
||||
$sitemap = SitemapInfo::where($where)
|
||||
->order('sort desc, id desc')
|
||||
->paginate($rows, false, ['query' => $param]);
|
||||
return table_assign(1, '', $sitemap);
|
||||
}
|
||||
else{
|
||||
return view('', [
|
||||
'sitemap_cate_id' => $param['id'],
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
||||
//添加网站地图
|
||||
|
@ -15,22 +15,21 @@ class Slide extends BaseController
|
||||
{
|
||||
public function index()
|
||||
{
|
||||
return view();
|
||||
}
|
||||
|
||||
//列表
|
||||
public function get_list()
|
||||
{
|
||||
$param = get_params();
|
||||
$where = array();
|
||||
if (!empty($param['keywords'])) {
|
||||
$where[] = ['id|name|title|desc', 'like', '%' . $param['keywords'] . '%'];
|
||||
if (request()->isAjax()) {
|
||||
$param = get_params();
|
||||
$where = array();
|
||||
if (!empty($param['keywords'])) {
|
||||
$where[] = ['id|name|title|desc', 'like', '%' . $param['keywords'] . '%'];
|
||||
}
|
||||
$rows = empty($param['limit']) ? get_config(app . page_size) : $param['limit'];
|
||||
$slide = SlideList::where($where)
|
||||
->order('create_time asc')
|
||||
->paginate($rows, false, ['query' => $param]);
|
||||
return table_assign(1, '', $slide);
|
||||
}
|
||||
$rows = empty($param['limit']) ? get_config(app . page_size) : $param['limit'];
|
||||
$slide = SlideList::where($where)
|
||||
->order('create_time asc')
|
||||
->paginate($rows, false, ['query' => $param]);
|
||||
return table_assign(1, '', $slide);
|
||||
else{
|
||||
return view();
|
||||
}
|
||||
}
|
||||
|
||||
//添加
|
||||
@ -101,9 +100,24 @@ class Slide extends BaseController
|
||||
//管理幻灯片
|
||||
public function slide_info()
|
||||
{
|
||||
return view('', [
|
||||
'slide_id' => get_params('id'),
|
||||
]);
|
||||
$param = get_params();
|
||||
if (request()->isAjax()) {
|
||||
$where = array();
|
||||
$where[] = ['s.slide_id','=',$param['id']];
|
||||
$rows = empty($param['limit']) ? get_config(app . page_size) : $param['limit'];
|
||||
$slideInfoList = SlideInfo::where($where)
|
||||
->alias('s')
|
||||
->join('file f', 's.img=f.id', 'LEFT')
|
||||
->field('s.*,f.filepath')
|
||||
->order('s.sort desc, s.id desc')
|
||||
->paginate($rows, false, ['query' => $param]);
|
||||
return table_assign(1, '', $slideInfoList);
|
||||
}
|
||||
else{
|
||||
return view('', [
|
||||
'slide_id' => $param['id'],
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
||||
//幻灯片列表
|
||||
|
@ -12,42 +12,41 @@ class User extends BaseController
|
||||
{
|
||||
public function index()
|
||||
{
|
||||
return view();
|
||||
}
|
||||
|
||||
//列表
|
||||
public function get_list()
|
||||
{
|
||||
$param = get_params();
|
||||
$where = array();
|
||||
if (!empty($param['keywords'])) {
|
||||
$where[] = ['nickname|truename|mobile|province|city','like', '%' . $param['keywords'] . '%'];
|
||||
}
|
||||
|
||||
//按时间检索
|
||||
$start_time = isset($param['start_time']) ? strtotime(urldecode($param['start_time'])) : 0;
|
||||
$end_time = isset($param['end_time']) ? strtotime(urldecode($param['end_time'])) : 0;
|
||||
|
||||
if ($start_time > 0 && $end_time > 0) {
|
||||
if ($start_time === $end_time) {
|
||||
$where['register_time'] = array('eq', $start_time);
|
||||
} else {
|
||||
$where['register_time'] = array(array('egt', $start_time), array('elt', $end_time), 'and');
|
||||
if (request()->isAjax()) {
|
||||
$param = get_params();
|
||||
$where = array();
|
||||
if (!empty($param['keywords'])) {
|
||||
$where[] = ['nickname|truename|mobile|province|city','like', '%' . $param['keywords'] . '%'];
|
||||
}
|
||||
} elseif ($start_time > 0 && $end_time == 0) {
|
||||
$where['register_time'] = array('egt', $start_time);
|
||||
} elseif ($start_time == 0 && $end_time > 0) {
|
||||
$where['register_time'] = array('elt', $end_time);
|
||||
|
||||
//按时间检索
|
||||
$start_time = isset($param['start_time']) ? strtotime(urldecode($param['start_time'])) : 0;
|
||||
$end_time = isset($param['end_time']) ? strtotime(urldecode($param['end_time'])) : 0;
|
||||
|
||||
if ($start_time > 0 && $end_time > 0) {
|
||||
if ($start_time === $end_time) {
|
||||
$where['register_time'] = array('eq', $start_time);
|
||||
} else {
|
||||
$where['register_time'] = array(array('egt', $start_time), array('elt', $end_time), 'and');
|
||||
}
|
||||
} elseif ($start_time > 0 && $end_time == 0) {
|
||||
$where['register_time'] = array('egt', $start_time);
|
||||
} elseif ($start_time == 0 && $end_time > 0) {
|
||||
$where['register_time'] = array('elt', $end_time);
|
||||
}
|
||||
|
||||
$rows = empty($param['limit']) ? get_config(app . page_size) : $param['limit'];
|
||||
$content = UserList::where($where)
|
||||
->order('id desc')
|
||||
->paginate($rows, false, ['query' => $param])
|
||||
->each(function ($item, $key) {
|
||||
$item->register_time = empty($item->register_time) ? '-' : date('Y-m-d H:i', $item->register_time);
|
||||
});
|
||||
return table_assign(1, '', $content);
|
||||
}
|
||||
|
||||
$rows = empty($param['limit']) ? get_config(app . page_size) : $param['limit'];
|
||||
$content = UserList::where($where)
|
||||
->order('id desc')
|
||||
->paginate($rows, false, ['query' => $param])
|
||||
->each(function ($item, $key) {
|
||||
$item->register_time = empty($item->register_time) ? '-' : date('Y-m-d H:i', $item->register_time);
|
||||
});
|
||||
return table_assign(1, '', $content);
|
||||
else{
|
||||
return view();
|
||||
}
|
||||
}
|
||||
|
||||
//编辑
|
||||
@ -101,38 +100,38 @@ class User extends BaseController
|
||||
|
||||
public function log()
|
||||
{
|
||||
return view();
|
||||
}
|
||||
//平台用户日志列表
|
||||
public function get_log_list()
|
||||
{
|
||||
$param = get_params();
|
||||
$where = array();
|
||||
if (!empty($param['keywords'])) {
|
||||
$where[] = ['nickname|title','like', '%' . $param['keywords'] . '%'];
|
||||
}
|
||||
$rows = empty($param['limit']) ? get_config(app . page_size) : $param['limit'];
|
||||
$content = DB::name('user_log')
|
||||
->field("id,uid,nickname,title,content,ip,param,FROM_UNIXTIME(create_time,'%Y-%m-%d %H:%i:%s') create_time")
|
||||
->order('create_time desc')
|
||||
->where($where)
|
||||
->paginate($rows, false, ['query' => $param]);
|
||||
|
||||
$content->toArray();
|
||||
foreach ($content as $k => $v) {
|
||||
$data = $v;
|
||||
$param_array = json_decode($v['param'], true);
|
||||
$param_value = '';
|
||||
foreach ($param_array as $key => $value) {
|
||||
if (is_array($value)) {
|
||||
$value = array_to_string($value);
|
||||
}
|
||||
$param_value .= $key . ':' . $value . ' | ';
|
||||
if (request()->isAjax()) {
|
||||
$param = get_params();
|
||||
$where = array();
|
||||
if (!empty($param['keywords'])) {
|
||||
$where[] = ['nickname|title','like', '%' . $param['keywords'] . '%'];
|
||||
}
|
||||
$data['param'] = $param_value;
|
||||
$content->offsetSet($k, $data);
|
||||
$rows = empty($param['limit']) ? get_config(app . page_size) : $param['limit'];
|
||||
$content = DB::name('user_log')
|
||||
->field("id,uid,nickname,title,content,ip,param,FROM_UNIXTIME(create_time,'%Y-%m-%d %H:%i:%s') create_time")
|
||||
->order('create_time desc')
|
||||
->where($where)
|
||||
->paginate($rows, false, ['query' => $param]);
|
||||
|
||||
$content->toArray();
|
||||
foreach ($content as $k => $v) {
|
||||
$data = $v;
|
||||
$param_array = json_decode($v['param'], true);
|
||||
$param_value = '';
|
||||
foreach ($param_array as $key => $value) {
|
||||
if (is_array($value)) {
|
||||
$value = array_to_string($value);
|
||||
}
|
||||
$param_value .= $key . ':' . $value . ' | ';
|
||||
}
|
||||
$data['param'] = $param_value;
|
||||
$content->offsetSet($k, $data);
|
||||
}
|
||||
return table_assign(1, '', $content);
|
||||
}
|
||||
return table_assign(1, '', $content);
|
||||
else{
|
||||
return view();
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -16,11 +16,15 @@ class Auth
|
||||
$pathInfo = str_replace('.' . $request->ext(), '', $request->pathInfo());
|
||||
$action = explode('/', $pathInfo)[0];
|
||||
// var_dump($pathInfo);
|
||||
if($pathInfo == '' || $action == '' ){
|
||||
redirect('/admin/index')->send();
|
||||
exit;
|
||||
}
|
||||
//验证用户登录
|
||||
if ($action !== 'login') {
|
||||
$session_admin = get_config('app.session_admin');
|
||||
if (!Session::has($session_admin)) {
|
||||
return $request->isAjax() ? to_assign(404, '请先登录') : redirect((string) url('/admin/login/index'));
|
||||
return $request->isAjax() ? to_assign(404, '请先登录') : redirect('/admin/index')->send();
|
||||
}
|
||||
|
||||
// 验证用户访问权限
|
||||
|
@ -6,78 +6,6 @@ use think\Model;
|
||||
|
||||
class AdminLog extends Model
|
||||
{
|
||||
|
||||
/**
|
||||
* 读取日志标题
|
||||
* @return array
|
||||
*/
|
||||
public function get_title($type)
|
||||
{
|
||||
$type_array = [
|
||||
'Conf/conf_submit' => '配置信息',
|
||||
'Menu/post_submit' => '菜单',
|
||||
'Menu/delete' => '菜单',
|
||||
'Rule/post_submit' => '节点',
|
||||
'Rule/delete' => '节点',
|
||||
'Role/post_submit' => '角色',
|
||||
'Role/delete' => '角色',
|
||||
'Admin/post_submit' => '管理员',
|
||||
'Admin/view' => '管理员',
|
||||
'Admin/delete' => '管理员',
|
||||
'Nav/post_submit' => '导航组',
|
||||
'Nav/delete' => '导航组',
|
||||
'Nav/nav_info_submit' => '导航',
|
||||
'Nav/nav_info_delete' => '导航',
|
||||
'Sitemap/post_submit' => '网站地图分类',
|
||||
'Sitemap/delete' => '网站地图分类',
|
||||
'Sitemap/sitemap_info' => '网站地图',
|
||||
'Sitemap/sitemap_info_submit' => '网站地图',
|
||||
'Sitemap/sitemap_info_delete' => '网站地图',
|
||||
'Slide/post_submit' => '轮播组',
|
||||
'Slide/delete' => '轮播组',
|
||||
'Slide/slide_info_submit' => '轮播图',
|
||||
'Slide/slide_info_delete' => '轮播图',
|
||||
'Keywords/post_submit' => 'SEO关键字',
|
||||
'Keywords/delete' => 'SEO关键字',
|
||||
'Search/delete' => '搜索关键字',
|
||||
'User/post_submit' => '用户',
|
||||
'User/view' => '用户',
|
||||
'User/delete' => '用户',
|
||||
'Article/cate_post_submit' => '文章分类',
|
||||
'Article/cate_delete' => '文章分类',
|
||||
'Article/post_submit' => '文章',
|
||||
'Article/delete' => '文章',
|
||||
'Api/upload' => '附件',
|
||||
'Login/login_submit' => '系统',
|
||||
'Consultation/post_submit' => '咨询',
|
||||
'Consultation/delete' => '咨询',
|
||||
'Dynamic/post_submit' => '动态',
|
||||
'Dynamic/delete' => '动态',
|
||||
];
|
||||
if (!empty($type_array[$type])) {
|
||||
return $type_array[$type];
|
||||
} else {
|
||||
return '未知';
|
||||
}
|
||||
}
|
||||
/**
|
||||
* 读取日志模块
|
||||
* @return array
|
||||
*/
|
||||
public function get_controller($controller, $fun)
|
||||
{
|
||||
$controller_array = ['Admin' => '系统用户', 'Article' => '文章', 'Conf' => '配置信息', 'Index' => '系统1', 'Keywords' => '关键字', 'Login' => '系统', 'Menu' => '菜单', 'Nav' => '导航分类', 'Role' => '角色', 'Rule' => '节点', 'Search' => '搜索词', 'Sitemap' => '网站地图', 'Slide' => '广告', 'User' => '用户', 'Api' => ''];
|
||||
if (!empty($controller_array[$controller])) {
|
||||
if ($fun == 'cate_post_submit') {
|
||||
return '文章分类';
|
||||
} else {
|
||||
return $controller_array[$controller];
|
||||
}
|
||||
} else {
|
||||
return '';
|
||||
}
|
||||
}
|
||||
|
||||
public function get_log_list($param = [])
|
||||
{
|
||||
$where = array();
|
||||
@ -93,7 +21,7 @@ class AdminLog extends Model
|
||||
$where['status'] = 1;
|
||||
$rows = empty($param['limit']) ? get_config('app.pages') : $param['limit'];
|
||||
$content = \think\facade\Db::name('admin_log')
|
||||
->field("id,uid,nickname,type,title,module,controller,function,param,create_time")
|
||||
->field("id,uid,nickname,type,title,module,controller,function,param,content,create_time")
|
||||
->order('create_time desc')
|
||||
->where($where)
|
||||
->paginate($rows, false, ['query' => $param]);
|
||||
@ -104,12 +32,12 @@ class AdminLog extends Model
|
||||
$param_array = json_decode($v['param'], true);
|
||||
$name = '';
|
||||
if (!empty($param_array['name'])) {
|
||||
$name = $param_array['name'];
|
||||
$name = ':'. $param_array['name'];
|
||||
}
|
||||
if (!empty($param_array['title'])) {
|
||||
$name = $param_array['title'];
|
||||
$name = ':'. $param_array['title'];
|
||||
}
|
||||
$data['content'] = $v['nickname'] . $v['title'] . '了' . $this->get_title($v['controller'] . '/' . $v['function']) . $name;
|
||||
$data['content'] = $v['content'] . $name;
|
||||
$data['times'] = time_trans($v['create_time']);
|
||||
$content->offsetSet($k, $data);
|
||||
}
|
||||
|
@ -42,7 +42,7 @@
|
||||
elem: '#test',
|
||||
title: '管理员列表',
|
||||
toolbar: '#toolbarDemo',
|
||||
url: '/admin/admin/get_list', //数据接口
|
||||
url: '/admin/admin/index', //数据接口
|
||||
page: true, //开启分页
|
||||
limit: 20,
|
||||
cols: [
|
||||
|
@ -34,7 +34,7 @@
|
||||
elem: '#test',
|
||||
title: '操作日志列表',
|
||||
toolbar: '#toolbarDemo',
|
||||
url: '/admin/admin/get_log_list', //数据接口
|
||||
url: '/admin/admin/log', //数据接口
|
||||
page: true, //开启分页
|
||||
limit: 20,
|
||||
cols: [
|
||||
|
@ -4,14 +4,14 @@
|
||||
<form class="layui-form body-content">
|
||||
<table class="layui-table">
|
||||
<tr>
|
||||
<td class="layui-td-gray2">标题 <span style="color: red">*</span></td>
|
||||
<td colspan="7"><input type="text" name="title" lay-verify="required" autocomplete="off" placeholder="请输入标题"
|
||||
<td class="layui-td-gray2">文章标题 <span style="color: red">*</span></td>
|
||||
<td colspan="7"><input type="text" name="title" lay-verify="required" lay-reqText="请输入文章标题" autocomplete="off" placeholder="请输入文章标题"
|
||||
class="layui-input"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="layui-td-gray2">分类<span style="color: red">*</span></td>
|
||||
<td>
|
||||
<select name="article_cate_id" lay-verify="required" lay-search="">
|
||||
<select name="article_cate_id" lay-verify="required" lay-reqText="请选择分类">
|
||||
<option value="">请选择分类</option>
|
||||
{volist name=":set_recursion(get_article_cate())" id="v"}
|
||||
<option value="{$v.id}">{$v.title}</option>
|
||||
@ -77,9 +77,9 @@
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="layui-td-gray2" style="vertical-align:top;">内容</td>
|
||||
<td class="layui-td-gray2" style="vertical-align:top;">内容<span style="color: red">*</span></td>
|
||||
<td colspan="5">
|
||||
<textarea name="content" placeholder="请输入内容" class="layui-textarea" id="container" lay-verify="required"
|
||||
<textarea name="content" placeholder="请输入内容" class="layui-textarea" id="container" lay-verify="required" lay-reqText="请完善文章内容"
|
||||
style="border:0;padding:0"></textarea>
|
||||
</td>
|
||||
</tr>
|
||||
@ -155,6 +155,6 @@
|
||||
|
||||
</script>
|
||||
{include file="common/layui" base='base' extend="['tagpicker']" use="['upload','form','tagpicker']" callback="init" /}
|
||||
{include file="common/ueditor" id="container" name="content" width="776px" height="100%" toolbar="[]" /}
|
||||
{include file="common/ueditor" id="container" name="content" width="776" height="500" toolbar="[]" /}
|
||||
{/block}
|
||||
<!-- /脚本 -->
|
@ -35,7 +35,7 @@
|
||||
id:tableId
|
||||
,elem: '#'+tableId
|
||||
,idField:'id'
|
||||
,url:'/admin/article/cate_list'
|
||||
,url:'/admin/article/cate'
|
||||
,cellMinWidth: 100
|
||||
,treeId:'id'//树形id字段名称
|
||||
,treeUpId:'pid'//树形父id字段名称
|
||||
|
@ -5,14 +5,14 @@
|
||||
<div>
|
||||
<table class="layui-table">
|
||||
<tr>
|
||||
<td class="layui-td-gray2">标题 <span style="color: red">*</span></td>
|
||||
<td colspan="7"> <input type="text" name="title" lay-verify="required" autocomplete="off" placeholder="请输入标题"
|
||||
<td class="layui-td-gray2">文章标题 <span style="color: red">*</span></td>
|
||||
<td colspan="7"> <input type="text" name="title" lay-verify="required" lay-reqText="请输入文章标题" autocomplete="off" placeholder="请输入文章标题"
|
||||
class="layui-input" value="{$article.title}"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="layui-td-gray2">分类<span style="color: red">*</span></td>
|
||||
<td>
|
||||
<select name="article_cate_id" lay-verify="required" lay-search="">
|
||||
<select name="article_cate_id" lay-verify="required" lay-reqText="请选择分类">
|
||||
<option value="">请选择分类</option>
|
||||
{volist name=":set_recursion(get_article_cate())" id="v"}
|
||||
<option value="{$v.id}" {eq name="$article.article_cate_id" value="$v.id" }selected{/eq}>{$v.title}</option>
|
||||
@ -27,7 +27,7 @@
|
||||
</td>
|
||||
<td class="layui-td-gray2">属性</td>
|
||||
<td>
|
||||
<select name="type" lay-search="">
|
||||
<select name="type">
|
||||
<option value="">请选择属性</option>
|
||||
<option value="1" {eq name="$article.type" value="1" }selected{/eq}>精华</option>
|
||||
<option value="2" {eq name="$article.type" value="2" }selected{/eq}>热门</option>
|
||||
@ -81,9 +81,9 @@
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="layui-td-gray2" style="vertical-align:top;">内容</td>
|
||||
<td class="layui-td-gray2" style="vertical-align:top;">内容<span style="color: red">*</span></td>
|
||||
<td colspan="5">
|
||||
<textarea name="content" placeholder="请输入内容" class="layui-textarea" id="container" lay-verify="required"
|
||||
<textarea name="content" placeholder="请输入内容" class="layui-textarea" id="container" lay-verify="required" lay-reqText="请完善文章内容"
|
||||
style="border:0;padding:0">{$article.content}</textarea>
|
||||
</td>
|
||||
</tr>
|
||||
@ -161,6 +161,6 @@
|
||||
|
||||
</script>
|
||||
{include file="common/layui" base='base' extend="['tagpicker']" use="['upload','form','tagpicker']" callback="init" /}
|
||||
{include file="common/ueditor" id="container" name="content" width="776px" height="100%" toolbar="[]" /}
|
||||
{include file="common/ueditor" id="container" name="content" width="776" height="500" toolbar="[]" /}
|
||||
{/block}
|
||||
<!-- /脚本 -->
|
@ -46,7 +46,7 @@
|
||||
elem: '#test',
|
||||
title: '文章分类列表',
|
||||
toolbar: '#toolbarDemo',
|
||||
url: '/admin/article/get_list', //数据接口
|
||||
url: '/admin/article/index', //数据接口
|
||||
page: true, //开启分页
|
||||
limit: 20,
|
||||
cols: [
|
||||
|
@ -27,7 +27,7 @@
|
||||
elem: '#test',
|
||||
title: '配置列表',
|
||||
toolbar: '#toolbarDemo',
|
||||
url: '/admin/conf/get_list',
|
||||
url: '/admin/conf/index',
|
||||
page: true, //开启分页
|
||||
limit: 20,
|
||||
cols: [
|
||||
|
@ -46,10 +46,15 @@
|
||||
<tr>
|
||||
<td class="layui-td-gray2">SEO关键词<font>*</font>
|
||||
</td>
|
||||
<td colspan="3">
|
||||
<td>
|
||||
<input type="text" name="keywords" lay-verify="required" autocomplete="off" placeholder="多个关键词用“,”隔开"
|
||||
lay-reqText="请输入SEO关键字" class="layui-input" {notempty name="$config.keywords"} value="{$config.keywords}" {/notempty}>
|
||||
</td>
|
||||
<td class="layui-td-gray2">公安备案号</td>
|
||||
<td>
|
||||
<input type="text" name="icp" autocomplete="off" placeholder="请输入公安备案号" class="layui-input"
|
||||
{notempty name="$config.beian"} value="{$config.beian}" {/notempty}>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="layui-td-gray2">SEO描述<font>*</font>
|
||||
|
@ -8,7 +8,7 @@
|
||||
</td>
|
||||
<td>
|
||||
<input type="hidden" name="id" value="{$id}" />
|
||||
<input type="text" name="title" lay-verify="required" autocomplete="off" placeholder="请输入关键字名称"
|
||||
<input type="text" name="title" lay-verify="required" lay-reqText="请输入关键字名称" autocomplete="off" placeholder="请输入关键字名称"
|
||||
class="layui-input" style="max-width: 360px;" {notempty name="$keywords.title"}
|
||||
value="{$keywords.title}" {/notempty}>
|
||||
</td>
|
||||
|
@ -32,7 +32,7 @@
|
||||
elem: '#test',
|
||||
title: '关键字列表',
|
||||
toolbar: '#toolbarDemo',
|
||||
url: '/admin/keywords/get_list',
|
||||
url: '/admin/keywords/index',
|
||||
page: true, //开启分页
|
||||
limit: 20,
|
||||
cols: [
|
||||
|
@ -33,7 +33,7 @@
|
||||
id: tableId
|
||||
, elem: '#' + tableId
|
||||
, idField: 'id'
|
||||
, url: '/admin/menu/get_list'
|
||||
, url: '/admin/menu/index'
|
||||
, cellMinWidth: 100
|
||||
, treeId: 'id'//树形id字段名称
|
||||
, treeUpId: 'pid'//树形父id字段名称
|
||||
|
@ -36,7 +36,7 @@
|
||||
var tableIns = table.render({
|
||||
elem: '#test',
|
||||
toolbar: '#toolbarDemo',
|
||||
url: '/admin/nav/get_list', //数据接口
|
||||
url: '/admin/nav/index', //数据接口
|
||||
page: true, //开启分页
|
||||
limit: 20,
|
||||
cols: [
|
||||
|
@ -46,7 +46,7 @@
|
||||
id: tableId,
|
||||
elem: '#' + tableId,
|
||||
idField: 'id',
|
||||
url: '/admin/nav/nav_info_list', //数据接口
|
||||
url: '/admin/nav/nav_info', //数据接口
|
||||
where: {
|
||||
id:nid
|
||||
},
|
||||
|
@ -8,7 +8,7 @@
|
||||
</td>
|
||||
<td>
|
||||
<input type="hidden" name="id" value="{$id}" />
|
||||
<input class="layui-input" type="text" name="title" lay-verify="required" {notempty name="$role.title"
|
||||
<input class="layui-input" type="text" name="title" lay-verify="required" lay-reqText="请输入角色名称" {notempty name="$role.title"
|
||||
}value="{$role.title}" {/notempty} placeholder="请输入角色名称" autocomplete="off" />
|
||||
</td>
|
||||
<td class="layui-td-gray2">状态<font>*</font>
|
||||
|
@ -40,7 +40,7 @@
|
||||
var tableIns = table.render({
|
||||
elem: '#test'
|
||||
, toolbar: '#toolbarDemo'
|
||||
, url: '/admin/role/get_list' //数据接口
|
||||
, url: '/admin/role/index' //数据接口
|
||||
, page: true //开启分页
|
||||
, limit: 20
|
||||
, cols: [[ //表头
|
||||
|
@ -34,7 +34,7 @@
|
||||
id: tableId
|
||||
, elem: '#' + tableId
|
||||
, idField: 'id'
|
||||
, url: '/admin/rule/get_list'
|
||||
, url: '/admin/rule/index'
|
||||
, cellMinWidth: 100
|
||||
, treeId: 'id'//树形id字段名称
|
||||
, treeUpId: 'pid'//树形父id字段名称
|
||||
|
@ -24,7 +24,7 @@
|
||||
elem: '#test',
|
||||
title: '关键字搜索列表',
|
||||
toolbar: '#toolbarDemo',
|
||||
url: '/admin/search/get_list',
|
||||
url: '/admin/search/index',
|
||||
page: true, //开启分页
|
||||
limit: 20,
|
||||
cols: [
|
||||
|
@ -8,7 +8,7 @@
|
||||
</td>
|
||||
<td>
|
||||
<input type="hidden" name="id" value="{$id}" />
|
||||
<input type="text" name="name" lay-verify="required" autocomplete="off" placeholder="请输入分类名"
|
||||
<input type="text" name="name" lay-verify="required" autocomplete="off" placeholder="请输入分类名" lay-reqText="请输入分类名"
|
||||
class="layui-input" {notempty name="$cate.name" }value="{$cate.name}" {/notempty}>
|
||||
</td>
|
||||
<td class="layui-td-gray2">排序
|
||||
|
@ -36,7 +36,7 @@
|
||||
elem: '#test',
|
||||
title: '网站地图列表',
|
||||
toolbar: '#toolbarDemo',
|
||||
url: '/admin/sitemap/get_list', //数据接口
|
||||
url: '/admin/sitemap/index', //数据接口
|
||||
page: true, //开启分页
|
||||
limit: 20,
|
||||
cols: [
|
||||
|
@ -35,7 +35,7 @@
|
||||
elem: '#test',
|
||||
title: '网站地图列表',
|
||||
toolbar: '#toolbarDemo',
|
||||
url: '/admin/sitemap/sitemap_info_list', //数据接口
|
||||
url: '/admin/sitemap/sitemap_info', //数据接口
|
||||
where: {
|
||||
id: sitemap_cate_id
|
||||
},
|
||||
|
@ -33,7 +33,7 @@
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="layui-td-gray2">PC端图片<font>*</font>
|
||||
<td class="layui-td-gray2">PC端图片
|
||||
</td>
|
||||
<td>
|
||||
<div class="layui-upload">
|
||||
@ -46,7 +46,7 @@
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td class="layui-td-gray2">移动端图片<font>*</font>
|
||||
<td class="layui-td-gray2">移动端图片
|
||||
</td>
|
||||
<td>
|
||||
<div class="layui-upload">
|
||||
|
@ -8,11 +8,11 @@
|
||||
</td>
|
||||
<td>
|
||||
<input type="hidden" name="id" value="{$id}" />
|
||||
<input type="text" name="title" lay-verify="required" autocomplete="off" placeholder="请输入标题"
|
||||
<input type="text" name="title" lay-verify="required" lay-reqText="请输入标题" autocomplete="off" placeholder="请输入标题"
|
||||
class="layui-input" {notempty name="$slide.title" }value="{$slide.title}" {/notempty}>
|
||||
</td>
|
||||
<td class="layui-td-gray2">标识</td>
|
||||
<td><input type="text" name="name" lay-verify="required" autocomplete="off" placeholder="请输入标识"
|
||||
<td><input type="text" name="name" lay-verify="required" autocomplete="off" placeholder="请输入标识" lay-reqText="请输入标识"
|
||||
class="layui-input" {notempty name="$slide.name" }value="{$slide.name}" {/notempty}></td>
|
||||
</tr>
|
||||
<tr>
|
||||
@ -30,7 +30,7 @@
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="layui-td-gray2">备注<font>*</font>
|
||||
<td class="layui-td-gray2">备注
|
||||
</td>
|
||||
<td colspan="3">
|
||||
<textarea name="desc" placeholder="请输入备注"
|
||||
|
@ -37,7 +37,7 @@
|
||||
elem: '#test',
|
||||
title: '轮播组列表',
|
||||
toolbar: '#toolbarDemo',
|
||||
url: '/admin/slide/get_list', //数据接口
|
||||
url: '/admin/slide/index', //数据接口
|
||||
page: true, //开启分页
|
||||
limit: 20,
|
||||
cols: [
|
||||
|
@ -36,7 +36,7 @@
|
||||
elem: '#test',
|
||||
title: '轮播列表',
|
||||
toolbar: '#toolbarDemo',
|
||||
url: '/admin/slide/slide_info_list', //数据接口
|
||||
url: '/admin/slide/slide_info', //数据接口
|
||||
where: {
|
||||
id: slide_id
|
||||
},
|
||||
|
@ -7,17 +7,17 @@
|
||||
<td class="layui-td-gray">标题<font>*</font></td>
|
||||
<td colspan="3">
|
||||
<input type="hidden" name="id" value="{$id}" />
|
||||
<input type="text" name="title" lay-verify="required" autocomplete="off" placeholder="请输入标题" class="layui-input"
|
||||
<input type="text" name="title" lay-verify="required" lay-reqText="请输入标题" autocomplete="off" placeholder="请输入标题" class="layui-input"
|
||||
{notempty name="$slide_info.title" }value="{$slide_info.title}" {/notempty}>
|
||||
</td>
|
||||
<td class="layui-td-gray" rowspan="3">图片</td>
|
||||
<td class="layui-td-gray" rowspan="3">图片<font>*</font></td>
|
||||
<td rowspan="3" style="vertical-align:top">
|
||||
<div class="layui-upload" style="text-align:center;">
|
||||
<button type="button" class="layui-btn layui-btn-sm layui-btn-normal" id="test1">选择要上传的图片</button>
|
||||
<div class="layui-upload-list" id="demo1" style="width: 100%;height:100px; overflow:hidden;">
|
||||
<img {notempty name="$slide_info.img" }src="{:get_file($slide_info.img)}" {/notempty}
|
||||
style="max-width: 160px;" />
|
||||
<input type="hidden" name="img" {notempty name="$slide_info.img" }value="{$slide_info.img}" {/notempty}>
|
||||
<input type="hidden" lay-verify="required" lay-reqText="请选择要上传的图片" name="img" {notempty name="$slide_info.img" }value="{$slide_info.img}" {/notempty}>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
|
@ -45,7 +45,7 @@
|
||||
elem: '#test',
|
||||
title: '用户列表',
|
||||
toolbar: '#toolbarDemo',
|
||||
url: '/admin/user/get_list', //数据接口
|
||||
url: '/admin/user/index', //数据接口
|
||||
page: true, //开启分页
|
||||
limit: 20,
|
||||
cols: [
|
||||
|
@ -23,7 +23,7 @@
|
||||
elem: '#test',
|
||||
title: '用户操作日志列表',
|
||||
toolbar: '#toolbarDemo',
|
||||
url: '/admin/user/get_log_list', //数据接口
|
||||
url: '/admin/user/log', //数据接口
|
||||
page: true, //开启分页
|
||||
limit: 20,
|
||||
cols: [
|
||||
|
@ -49,7 +49,8 @@
|
||||
<div class="footer-bottom">
|
||||
<div class="footer-bottom-box clearfix">
|
||||
<div class="l">
|
||||
{:get_system_config('web','copyright')} <a href="http://www.beian.miit.gov.cn" target="_blank" rel="nofollow" style="margin-left: 15px;color:#dad8d5">{:get_system_config('web','icp')}</a>
|
||||
{:get_system_config('web','copyright')}
|
||||
<a target="_blank" rel="nofollow" style="margin-left: 15px;color:#dad8d5" href="http://www.beian.gov.cn/portal/registerSystemInfo">{:get_system_config('web','beian')}</a><a href="https://beian.miit.gov.cn/" target="_blank" rel="nofollow" style="margin-left: 15px;color:#dad8d5">{:get_system_config('web','icp')}</a>
|
||||
</div>
|
||||
<div class="r">Powered by GouguCMS</div>
|
||||
</div>
|
||||
|
@ -12,20 +12,20 @@ CREATE TABLE `cms_admin` (
|
||||
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
|
||||
`username` varchar(255) NOT NULL DEFAULT '',
|
||||
`pwd` varchar(255) NOT NULL DEFAULT '',
|
||||
`salt` varchar(50) NOT NULL DEFAULT '',
|
||||
`salt` varchar(100) NOT NULL DEFAULT '',
|
||||
`nickname` varchar(255) DEFAULT '',
|
||||
`thumb` varchar(200) DEFAULT NULL,
|
||||
`thumb` varchar(255) DEFAULT NULL,
|
||||
`mobile` bigint(11) DEFAULT '0',
|
||||
`desc` text COMMENT '备注',
|
||||
`create_time` int(11) NOT NULL DEFAULT '0',
|
||||
`update_time` int(11) NOT NULL DEFAULT '0',
|
||||
`last_login_time` int(11) NOT NULL DEFAULT '0',
|
||||
`login_num` int(11) NOT NULL DEFAULT '0',
|
||||
`last_login_ip` varchar(100) NOT NULL DEFAULT '',
|
||||
`last_login_ip` varchar(64) NOT NULL DEFAULT '',
|
||||
`status` int(1) NOT NULL DEFAULT '1' COMMENT '1正常-1禁止登录',
|
||||
PRIMARY KEY (`id`),
|
||||
UNIQUE KEY `username` (`id`,`username`) USING BTREE
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='管理员';
|
||||
UNIQUE KEY `id` (`id`) USING BTREE
|
||||
) ENGINE=InnoDB DEFAULT CHARACTER SET = utf8mb4 COMMENT='管理员';
|
||||
|
||||
-- ----------------------------
|
||||
-- Table structure for `cms_admin_group`
|
||||
@ -35,31 +35,31 @@ CREATE TABLE `cms_admin_group` (
|
||||
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
|
||||
`title` varchar(255) NOT NULL DEFAULT '',
|
||||
`status` int(1) NOT NULL DEFAULT '1',
|
||||
`rules` varchar(10000) DEFAULT '' COMMENT '用户组拥有的规则id, 多个规则","隔开',
|
||||
`menus` varchar(10000) DEFAULT '',
|
||||
`rules` varchar(1000) DEFAULT '' COMMENT '用户组拥有的规则id, 多个规则","隔开',
|
||||
`menus` varchar(1000) DEFAULT '',
|
||||
`desc` text COMMENT '备注',
|
||||
`create_time` int(11) NOT NULL DEFAULT '0',
|
||||
`update_time` int(11) NOT NULL DEFAULT '0',
|
||||
PRIMARY KEY (`id`),
|
||||
UNIQUE KEY `id` (`id`) USING BTREE
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='权限分组';
|
||||
) ENGINE=InnoDB DEFAULT CHARACTER SET = utf8mb4 COMMENT='权限分组';
|
||||
|
||||
-- ----------------------------
|
||||
-- Records of cms_admin_group
|
||||
-- ----------------------------
|
||||
INSERT INTO `cms_admin_group` VALUES ('1', '超级管理员', '1', '1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98', '1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21', '超级管理员,系统自动分配所有可操作权限及菜单。', '0', '0');
|
||||
INSERT INTO `cms_admin_group` VALUES (2, '测试角色', 1, '1,5,6,12,13,17,18,22,23,27,28,33,34,91,92,93,94,95,97,98,2,35,36,37,38,40,41,42,43,45,46,47,48,51,52,53,50,55,56,57,58,60,61,62,63,65,66,67,68,70,71,3,73,74,76,77,79,80,4,81,82,83,84,86,87,88,89', '1,5,6,7,8,9,10,11,12,2,13,14,15,16,17,3,18,19,4,20,21', '测试角色', 0, 0);
|
||||
INSERT INTO `cms_admin_group` VALUES ('1', '超级管理员', '1', '1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81', '1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22', '超级管理员,系统自动分配所有可操作权限及菜单。', '0', '0');
|
||||
INSERT INTO `cms_admin_group` VALUES (2, '测试角色', 1, '1,5,6,11,15,19,23,28,29,30,2,37,41,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,3,67,68,70,71,72,73,4,74,75,76,77,78,79,80,81', '1,5,6,7,8,9,10,11,12,2,13,14,15,16,17,3,18,19,4,20,21,22', '测试角色', 0, 0);
|
||||
-- ----------------------------
|
||||
-- Table structure for `cms_admin_group_access`
|
||||
-- ----------------------------
|
||||
DROP TABLE IF EXISTS `cms_admin_group_access`;
|
||||
CREATE TABLE `cms_admin_group_access` (
|
||||
`uid` mediumint(11) unsigned DEFAULT NULL,
|
||||
`group_id` mediumint(11) DEFAULT NULL,
|
||||
`uid` int(11) unsigned DEFAULT NULL,
|
||||
`group_id` int(11) DEFAULT NULL,
|
||||
`create_time` int(11) NOT NULL DEFAULT '0',
|
||||
`update_time` int(11) NOT NULL DEFAULT '0',
|
||||
UNIQUE KEY `uid_group_id` (`uid`,`group_id`) USING BTREE
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='权限分组和管理员的关联表';
|
||||
) ENGINE=InnoDB DEFAULT CHARACTER SET = utf8mb4 COMMENT='权限分组和管理员的关联表';
|
||||
|
||||
-- ----------------------------
|
||||
-- Records of cms_admin_group_access
|
||||
@ -73,14 +73,15 @@ DROP TABLE IF EXISTS `cms_admin_menu`;
|
||||
CREATE TABLE `cms_admin_menu` (
|
||||
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
|
||||
`pid` int(11) NOT NULL DEFAULT '0',
|
||||
`title` varchar(50) NOT NULL DEFAULT '',
|
||||
`src` varchar(225) DEFAULT '',
|
||||
`icon` varchar(225) DEFAULT '',
|
||||
`title` varchar(255) NOT NULL DEFAULT '',
|
||||
`src` varchar(255) DEFAULT '',
|
||||
`icon` varchar(255) DEFAULT '',
|
||||
`sort` int(11) NOT NULL DEFAULT '1' COMMENT '越大越靠前',
|
||||
`create_time` int(11) NOT NULL DEFAULT '0',
|
||||
`update_time` int(11) NOT NULL DEFAULT '0',
|
||||
PRIMARY KEY (`id`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='后台菜单';
|
||||
PRIMARY KEY (`id`),
|
||||
UNIQUE KEY `id` (`id`) USING BTREE
|
||||
) ENGINE=InnoDB DEFAULT CHARACTER SET = utf8mb4 COMMENT='后台菜单';
|
||||
|
||||
-- ----------------------------
|
||||
-- Records of cms_admin_menu
|
||||
@ -103,9 +104,10 @@ INSERT INTO `cms_admin_menu` VALUES (15, 2, '轮播广告', 'admin/slide/index',
|
||||
INSERT INTO `cms_admin_menu` VALUES (16, 2, 'SEO关键字', 'admin/keywords/index', '', 1, 0, 0);
|
||||
INSERT INTO `cms_admin_menu` VALUES (17, 2, '搜索关键词', 'admin/search/index', '', 1, 0, 0);
|
||||
INSERT INTO `cms_admin_menu` VALUES (18, 3, '用户列表', 'admin/user/index', '',1, 0, 0);
|
||||
INSERT INTO `cms_admin_menu` VALUES (19, 3, '操作日志', 'admin/user/log', '', 1, 0, 0);
|
||||
INSERT INTO `cms_admin_menu` VALUES (20, 4, '文章分类', 'admin/article/cate', '', 1, 0, 0);
|
||||
INSERT INTO `cms_admin_menu` VALUES (21, 4, '文章列表', 'admin/article/index', '', 1, 0, 0);
|
||||
INSERT INTO `cms_admin_menu` VALUES (19, 3, '操作记录', 'admin/user/record', '', 1, 0, 0);
|
||||
INSERT INTO `cms_admin_menu` VALUES (20, 3, '操作日志', 'admin/user/log', '', 1, 0, 0);
|
||||
INSERT INTO `cms_admin_menu` VALUES (21, 4, '文章分类', 'admin/article/cate', '', 1, 0, 0);
|
||||
INSERT INTO `cms_admin_menu` VALUES (22, 4, '文章列表', 'admin/article/index', '', 1, 0, 0);
|
||||
|
||||
-- ----------------------------
|
||||
-- Table structure for `cms_admin_rule`
|
||||
@ -119,8 +121,8 @@ CREATE TABLE `cms_admin_rule` (
|
||||
`create_time` int(11) NOT NULL DEFAULT '0',
|
||||
`update_time` int(11) NOT NULL DEFAULT '0' COMMENT '更新时间',
|
||||
PRIMARY KEY (`id`),
|
||||
KEY `src` (`src`) USING BTREE
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='权限节点';
|
||||
UNIQUE KEY `id` (`id`) USING BTREE
|
||||
) ENGINE=InnoDB DEFAULT CHARACTER SET = utf8mb4 COMMENT='权限节点';
|
||||
|
||||
-- ----------------------------
|
||||
-- Records of cms_admin_rule
|
||||
@ -130,135 +132,121 @@ INSERT INTO `cms_admin_rule` VALUES (2, 0, '', '基础数据', 0, 0);
|
||||
INSERT INTO `cms_admin_rule` VALUES (3, 0, '', '平台用户', 0, 0);
|
||||
INSERT INTO `cms_admin_rule` VALUES (4, 0, '', '资讯中心', 0, 0);
|
||||
INSERT INTO `cms_admin_rule` VALUES (5, 1, 'admin/conf/index', '系统配置', 0, 0);
|
||||
INSERT INTO `cms_admin_rule` VALUES (6, 5, 'admin/conf/get_list', '获取配置信息', 0, 0);
|
||||
INSERT INTO `cms_admin_rule` VALUES (7, 5, 'admin/conf/add', '新增配置信息', 0, 0);
|
||||
INSERT INTO `cms_admin_rule` VALUES (8, 5, 'admin/conf/post_submit', '保存配置信息', 0, 0);
|
||||
INSERT INTO `cms_admin_rule` VALUES (9, 5, 'admin/conf/edit', '编辑配置详情', 0, 0);
|
||||
INSERT INTO `cms_admin_rule` VALUES (10, 5, 'admin/conf/conf_submit', '保存配置详情', 0, 0);
|
||||
INSERT INTO `cms_admin_rule` VALUES (11, 5, 'admin/conf/delete', '删除配置信息', 0, 0);
|
||||
INSERT INTO `cms_admin_rule` VALUES (12, 1, 'admin/menu/index', '功能菜单', 0, 0);
|
||||
INSERT INTO `cms_admin_rule` VALUES (13, 12, 'admin/menu/get_list', '菜单列表', 0, 0);
|
||||
INSERT INTO `cms_admin_rule` VALUES (14, 12, 'admin/menu/add', '添加菜单', 0, 0);
|
||||
INSERT INTO `cms_admin_rule` VALUES (15, 12, 'admin/menu/post_submit', '菜单保存', 0, 0);
|
||||
INSERT INTO `cms_admin_rule` VALUES (16, 12, 'admin/menu/delete', '菜单删除', 0, 0);
|
||||
INSERT INTO `cms_admin_rule` VALUES (17, 1, 'admin/rule/index', '功能节点', 0, 0);
|
||||
INSERT INTO `cms_admin_rule` VALUES (18, 17, 'admin/rule/get_list', '节点列表', 0, 0);
|
||||
INSERT INTO `cms_admin_rule` VALUES (19, 17, 'admin/rule/add', '添加节点', 0, 0);
|
||||
INSERT INTO `cms_admin_rule` VALUES (20, 17, 'admin/rule/post_submit', '节点保存', 0, 0);
|
||||
INSERT INTO `cms_admin_rule` VALUES (21, 17, 'admin/rule/delete', '节点删除', 0, 0);
|
||||
INSERT INTO `cms_admin_rule` VALUES (22, 1, 'admin/role/index', '权限角色', 0, 0);
|
||||
INSERT INTO `cms_admin_rule` VALUES (23, 22, 'admin/role/get_list', '权限列表',0, 0);
|
||||
INSERT INTO `cms_admin_rule` VALUES (24, 22, 'admin/role/add', '权限添加',0, 0);
|
||||
INSERT INTO `cms_admin_rule` VALUES (25, 22, 'admin/role/post_submit', '权限保存',0, 0);
|
||||
INSERT INTO `cms_admin_rule` VALUES (26, 22, 'admin/role/delete', '权限删除', 0, 0);
|
||||
INSERT INTO `cms_admin_rule` VALUES (27, 1, 'admin/admin/index', '管理员', 0, 0);
|
||||
INSERT INTO `cms_admin_rule` VALUES (28, 27, 'admin/admin/get_list', '管理员列表', 0, 0);
|
||||
INSERT INTO `cms_admin_rule` VALUES (29, 27, 'admin/admin/add', '添加/修改管理员', 0, 0);
|
||||
INSERT INTO `cms_admin_rule` VALUES (30, 27, 'admin/admin/post_submit', '管理员保存', 0, 0);
|
||||
INSERT INTO `cms_admin_rule` VALUES (31, 27, 'admin/admin/view', '管理员查看', 0, 0);
|
||||
INSERT INTO `cms_admin_rule` VALUES (32, 27, 'admin/admin/delete', '管理员删除',0, 0);
|
||||
INSERT INTO `cms_admin_rule` VALUES (33, 1, 'admin/admin/log', '操作日志',0, 0);
|
||||
INSERT INTO `cms_admin_rule` VALUES (34, 33, 'admin/admin/get_log_list', '操作日志列表', 0, 0);
|
||||
INSERT INTO `cms_admin_rule` VALUES (35, 2, 'admin/nav/index', '导航组管理', 0, 0);
|
||||
INSERT INTO `cms_admin_rule` VALUES (36, 35, 'admin/nav/get_list', '导航组列表', 0, 0);
|
||||
INSERT INTO `cms_admin_rule` VALUES (37, 35, 'admin/nav/add', '添加/修改导航组', 0, 0);
|
||||
INSERT INTO `cms_admin_rule` VALUES (38, 35, 'admin/nav/post_submit', '导航组保存', 0, 0);
|
||||
INSERT INTO `cms_admin_rule` VALUES (39, 35, 'admin/nav/delete', '导航组删除', 0, 0);
|
||||
INSERT INTO `cms_admin_rule` VALUES (40, 2, 'admin/nav/nav_info', '导航管理', 0, 0);
|
||||
INSERT INTO `cms_admin_rule` VALUES (41, 40, 'admin/nav/nav_info_list', '导航列表', 0, 0);
|
||||
INSERT INTO `cms_admin_rule` VALUES (42, 40, 'admin/nav/nav_info_add', '添加/修改导航', 0, 0);
|
||||
INSERT INTO `cms_admin_rule` VALUES (43, 40, 'admin/nav/nav_info_submit', '导航保存',0, 0);
|
||||
INSERT INTO `cms_admin_rule` VALUES (44, 40, 'admin/nav/nav_info_delete', '导航删除',0, 0);
|
||||
INSERT INTO `cms_admin_rule` VALUES (6, 5, 'admin/conf/add', '新增配置信息', 0, 0);
|
||||
INSERT INTO `cms_admin_rule` VALUES (7, 5, 'admin/conf/post_submit', '保存配置信息', 0, 0);
|
||||
INSERT INTO `cms_admin_rule` VALUES (8, 5, 'admin/conf/edit', '编辑配置详情', 0, 0);
|
||||
INSERT INTO `cms_admin_rule` VALUES (9, 5, 'admin/conf/conf_submit', '保存配置内容', 0, 0);
|
||||
INSERT INTO `cms_admin_rule` VALUES (10, 5, 'admin/conf/delete', '删除配置信息', 0, 0);
|
||||
INSERT INTO `cms_admin_rule` VALUES (11, 1, 'admin/menu/index', '功能菜单', 0, 0);
|
||||
INSERT INTO `cms_admin_rule` VALUES (12, 11, 'admin/menu/add', '添加菜单', 0, 0);
|
||||
INSERT INTO `cms_admin_rule` VALUES (13, 11, 'admin/menu/post_submit', '保存菜单信息', 0, 0);
|
||||
INSERT INTO `cms_admin_rule` VALUES (14, 11, 'admin/menu/delete', '删除菜单', 0, 0);
|
||||
INSERT INTO `cms_admin_rule` VALUES (15, 1, 'admin/rule/index', '功能节点', 0, 0);
|
||||
INSERT INTO `cms_admin_rule` VALUES (16, 15, 'admin/rule/add', '添加节点', 0, 0);
|
||||
INSERT INTO `cms_admin_rule` VALUES (17, 15, 'admin/rule/post_submit', '保存节点信息', 0, 0);
|
||||
INSERT INTO `cms_admin_rule` VALUES (18, 15, 'admin/rule/delete', '删除节点', 0, 0);
|
||||
INSERT INTO `cms_admin_rule` VALUES (19, 1, 'admin/role/index', '权限角色', 0, 0);
|
||||
INSERT INTO `cms_admin_rule` VALUES (20, 19, 'admin/role/add', '添加角色',0, 0);
|
||||
INSERT INTO `cms_admin_rule` VALUES (21, 19, 'admin/role/post_submit', '保存角色信息',0, 0);
|
||||
INSERT INTO `cms_admin_rule` VALUES (22, 19, 'admin/role/delete', '删除角色', 0, 0);
|
||||
INSERT INTO `cms_admin_rule` VALUES (23, 1, 'admin/admin/index', '管理员', 0, 0);
|
||||
INSERT INTO `cms_admin_rule` VALUES (24, 23, 'admin/admin/add', '添加/修改管理员', 0, 0);
|
||||
INSERT INTO `cms_admin_rule` VALUES (25, 23, 'admin/admin/post_submit', '保存管理员信息', 0, 0);
|
||||
INSERT INTO `cms_admin_rule` VALUES (26, 23, 'admin/admin/view', '查看管理员信息', 0, 0);
|
||||
INSERT INTO `cms_admin_rule` VALUES (27, 23, 'admin/admin/delete', '删除管理员',0, 0);
|
||||
INSERT INTO `cms_admin_rule` VALUES (28, 1, 'admin/admin/log', '操作日志',0, 0);
|
||||
INSERT INTO `cms_admin_rule` VALUES (29, 1, 'admin/database/database', '备份数据', 0, 0);
|
||||
INSERT INTO `cms_admin_rule` VALUES (30, 29, 'admin/database/backup', '备份数据表', 0, 0);
|
||||
INSERT INTO `cms_admin_rule` VALUES (31, 29, 'admin/database/optimize', '优化数据表', 0, 0);
|
||||
INSERT INTO `cms_admin_rule` VALUES (32, 29, 'admin/database/repair', '修复数据表', 0, 0);
|
||||
INSERT INTO `cms_admin_rule` VALUES (33, 1, 'admin/database/backuplist', '还原数据', 0, 0);
|
||||
INSERT INTO `cms_admin_rule` VALUES (34, 33, 'admin/database/import', '还原数据表', 0, 0);
|
||||
INSERT INTO `cms_admin_rule` VALUES (35, 33, 'admin/database/downfile', '下载备份数据', 0, 0);
|
||||
INSERT INTO `cms_admin_rule` VALUES (36, 33, 'admin/database/del', '删除备份数据', 0, 0);
|
||||
INSERT INTO `cms_admin_rule` VALUES (37, 2, 'admin/nav/index', '导航组管理', 0, 0);
|
||||
INSERT INTO `cms_admin_rule` VALUES (38, 37, 'admin/nav/add', '添加/修改导航组', 0, 0);
|
||||
INSERT INTO `cms_admin_rule` VALUES (39, 37, 'admin/nav/post_submit', '保存导航组信息', 0, 0);
|
||||
INSERT INTO `cms_admin_rule` VALUES (40, 37, 'admin/nav/delete', '删除导航组', 0, 0);
|
||||
INSERT INTO `cms_admin_rule` VALUES (41, 2, 'admin/nav/nav_info', '导航管理', 0, 0);
|
||||
INSERT INTO `cms_admin_rule` VALUES (42, 41, 'admin/nav/nav_info_add', '添加/修改导航', 0, 0);
|
||||
INSERT INTO `cms_admin_rule` VALUES (43, 41, 'admin/nav/nav_info_submit', '保存导航信息',0, 0);
|
||||
INSERT INTO `cms_admin_rule` VALUES (44, 41, 'admin/nav/nav_info_delete', '删除导航',0, 0);
|
||||
INSERT INTO `cms_admin_rule` VALUES (45, 2, 'admin/sitemap/index', '网站地图分类', 0, 0);
|
||||
INSERT INTO `cms_admin_rule` VALUES (46, 45, 'admin/sitemap/get_list', '网站地图分类列表', 0, 0);
|
||||
INSERT INTO `cms_admin_rule` VALUES (47, 45, 'admin/sitemap/add', '添加/编辑网站地图分类', 0, 0);
|
||||
INSERT INTO `cms_admin_rule` VALUES (48, 45, 'admin/sitemap/post_submit', '网站地图分类保存', 0, 0);
|
||||
INSERT INTO `cms_admin_rule` VALUES (49, 45, 'admin/sitemap/delete', '网站地图分类删除', 0, 0);
|
||||
INSERT INTO `cms_admin_rule` VALUES (50, 2, 'admin/sitemap/sitemap_info', '网站地图', 0, 0);
|
||||
INSERT INTO `cms_admin_rule` VALUES (51, 45, 'admin/sitemap/sitemap_info_list', '网站地图列表', 0, 0);
|
||||
INSERT INTO `cms_admin_rule` VALUES (52, 45, 'admin/sitemap/sitemap_info_add', '添加/编辑网站地图',0, 0);
|
||||
INSERT INTO `cms_admin_rule` VALUES (53, 45, 'admin/sitemap/sitemap_info_submit', '网站地图保存', 0, 0);
|
||||
INSERT INTO `cms_admin_rule` VALUES (54, 45, 'admin/sitemap/sitemap_info_delete', '删除网站地图', 0, 0);
|
||||
INSERT INTO `cms_admin_rule` VALUES (55, 2, 'admin/slide/index', '轮播组',0, 0);
|
||||
INSERT INTO `cms_admin_rule` VALUES (56, 55, 'admin/slide/get_list', '轮播组列表', 0, 0);
|
||||
INSERT INTO `cms_admin_rule` VALUES (57, 55, 'admin/slide/add', '添加轮播组', 0, 0);
|
||||
INSERT INTO `cms_admin_rule` VALUES (58, 55, 'admin/slide/post_submit', '轮播组添加', 0, 0);
|
||||
INSERT INTO `cms_admin_rule` VALUES (59, 55, 'admin/slide/delete', '删除轮播组', 0, 0);
|
||||
INSERT INTO `cms_admin_rule` VALUES (60, 2, 'admin/slide/slide_info', '轮播广告', 0, 0);
|
||||
INSERT INTO `cms_admin_rule` VALUES (61, 60, 'admin/slide/slide_info_list', '轮播图列表', 0, 0);
|
||||
INSERT INTO `cms_admin_rule` VALUES (62, 60, 'admin/slide/slide_info_add', '添加轮播图', 0, 0);
|
||||
INSERT INTO `cms_admin_rule` VALUES (63, 60, 'admin/slide/slide_info_submit', '轮播图保存', 0, 0);
|
||||
INSERT INTO `cms_admin_rule` VALUES (64, 60, 'admin/slide/slide_info_delete', '轮播图删除', 0, 0);
|
||||
INSERT INTO `cms_admin_rule` VALUES (65, 2, 'admin/keywords/index', 'SEO关键字', 0, 0);
|
||||
INSERT INTO `cms_admin_rule` VALUES (66, 65, 'admin/keywords/get_list', 'SEO关键字列表', 0, 0);
|
||||
INSERT INTO `cms_admin_rule` VALUES (67, 65, 'admin/keywords/add', 'SEO关键字添加', 0, 0);
|
||||
INSERT INTO `cms_admin_rule` VALUES (68, 65, 'admin/keywords/post_submit', 'SEO关键字保存', 0, 0);
|
||||
INSERT INTO `cms_admin_rule` VALUES (69, 65, 'admin/keywords/delete', 'SEO关键字删除', 0, 0);
|
||||
INSERT INTO `cms_admin_rule` VALUES (70, 2, 'admin/search/index', '搜索关键字', 0, 0);
|
||||
INSERT INTO `cms_admin_rule` VALUES (71, 70, 'admin/search/get_list', '关键字搜索列表', 0, 0);
|
||||
INSERT INTO `cms_admin_rule` VALUES (72, 70, 'admin/search/delete', '关键字搜索删除', 0, 0);
|
||||
INSERT INTO `cms_admin_rule` VALUES (73, 3, 'admin/user/index', '用户管理', 0, 0);
|
||||
INSERT INTO `cms_admin_rule` VALUES (74, 73, 'admin/user/get_list', '用户管理列表', 0, 0);
|
||||
INSERT INTO `cms_admin_rule` VALUES (75, 73, 'admin/user/edit', '修改用户信息', 0, 0);
|
||||
INSERT INTO `cms_admin_rule` VALUES (76, 73, 'admin/user/post_submit', '用户保存', 0, 0);
|
||||
INSERT INTO `cms_admin_rule` VALUES (77, 73, 'admin/user/view', '用户查看', 0, 0);
|
||||
INSERT INTO `cms_admin_rule` VALUES (78, 73, 'admin/user/delete', '用户禁用',0, 0);
|
||||
INSERT INTO `cms_admin_rule` VALUES (79, 3, 'admin/user/log', '操作日志', 0, 0);
|
||||
INSERT INTO `cms_admin_rule` VALUES (80, 79, 'admin/user/get_log_list', '操作日志列表', 0, 0);
|
||||
INSERT INTO `cms_admin_rule` VALUES (81, 4, 'admin/article/cate', '文章分类', 0, 0);
|
||||
INSERT INTO `cms_admin_rule` VALUES (82, 81, 'admin/article/cate_list', '文章分类列表', 0, 0);
|
||||
INSERT INTO `cms_admin_rule` VALUES (83, 81, 'admin/article/cate_add', '添加文章分类', 0, 0);
|
||||
INSERT INTO `cms_admin_rule` VALUES (84, 81, 'admin/article/cate_post_submit', '文章分类添加', 0, 0);
|
||||
INSERT INTO `cms_admin_rule` VALUES (85, 81, 'admin/article/cate_delete', '文章分类删除', 0, 0);
|
||||
INSERT INTO `cms_admin_rule` VALUES (86, 4, 'admin/article/index', '文章列表', 0, 0);
|
||||
INSERT INTO `cms_admin_rule` VALUES (87, 86, 'admin/article/get_list', '文章列表', 0, 0);
|
||||
INSERT INTO `cms_admin_rule` VALUES (88, 86, 'admin/article/add', '添加文章', 0, 0);
|
||||
INSERT INTO `cms_admin_rule` VALUES (89, 86, 'admin/article/post_submit', '文章添加', 0, 0);
|
||||
INSERT INTO `cms_admin_rule` VALUES (90, 86, 'admin/article/delete', '文章删除', 0, 0);
|
||||
INSERT INTO `cms_admin_rule` VALUES (91, 1, 'admin/database/database', '数据备份', 0, 0);
|
||||
INSERT INTO `cms_admin_rule` VALUES (92, 91, 'admin/database/backup', '数据表备份', 0, 0);
|
||||
INSERT INTO `cms_admin_rule` VALUES (93, 91, 'admin/database/optimize', '数据表优化', 0, 0);
|
||||
INSERT INTO `cms_admin_rule` VALUES (94, 91, 'admin/database/repair', '数据表修复', 0, 0);
|
||||
INSERT INTO `cms_admin_rule` VALUES (95, 1, 'admin/database/backuplist', '数据还原', 0, 0);
|
||||
INSERT INTO `cms_admin_rule` VALUES (96, 95, 'admin/database/import', '数据表还原', 0, 0);
|
||||
INSERT INTO `cms_admin_rule` VALUES (97, 95, 'admin/database/downfile', '备份数据下载', 0, 0);
|
||||
INSERT INTO `cms_admin_rule` VALUES (98, 95, 'admin/database/del', '删除备份数据', 0, 0);
|
||||
INSERT INTO `cms_admin_rule` VALUES (46, 45, 'admin/sitemap/add', '添加/编辑网站地图分类', 0, 0);
|
||||
INSERT INTO `cms_admin_rule` VALUES (47, 45, 'admin/sitemap/post_submit', '保存网站地图分类信息', 0, 0);
|
||||
INSERT INTO `cms_admin_rule` VALUES (48, 45, 'admin/sitemap/delete', '删除网站地图分类', 0, 0);
|
||||
INSERT INTO `cms_admin_rule` VALUES (49, 2, 'admin/sitemap/sitemap_info', '网站地图', 0, 0);
|
||||
INSERT INTO `cms_admin_rule` VALUES (50, 49, 'admin/sitemap/sitemap_info_add', '添加/编辑网站地图',0, 0);
|
||||
INSERT INTO `cms_admin_rule` VALUES (51, 49, 'admin/sitemap/sitemap_info_submit', '保存网站地图信息', 0, 0);
|
||||
INSERT INTO `cms_admin_rule` VALUES (52, 49, 'admin/sitemap/sitemap_info_delete', '删除网站地图', 0, 0);
|
||||
INSERT INTO `cms_admin_rule` VALUES (53, 2, 'admin/slide/index', '轮播组',0, 0);
|
||||
INSERT INTO `cms_admin_rule` VALUES (54, 53, 'admin/slide/add', '添加轮播组', 0, 0);
|
||||
INSERT INTO `cms_admin_rule` VALUES (55, 53, 'admin/slide/post_submit', '保存轮播组信息', 0, 0);
|
||||
INSERT INTO `cms_admin_rule` VALUES (56, 53, 'admin/slide/delete', '删除轮播组', 0, 0);
|
||||
INSERT INTO `cms_admin_rule` VALUES (57, 2, 'admin/slide/slide_info', '轮播广告', 0, 0);
|
||||
INSERT INTO `cms_admin_rule` VALUES (58, 57, 'admin/slide/slide_info_add', '添加轮播图', 0, 0);
|
||||
INSERT INTO `cms_admin_rule` VALUES (59, 57, 'admin/slide/slide_info_submit', '保存轮播图信息', 0, 0);
|
||||
INSERT INTO `cms_admin_rule` VALUES (60, 57, 'admin/slide/slide_info_delete', '删除轮播图', 0, 0);
|
||||
INSERT INTO `cms_admin_rule` VALUES (61, 2, 'admin/keywords/index', 'SEO关键字', 0, 0);
|
||||
INSERT INTO `cms_admin_rule` VALUES (62, 61, 'admin/keywords/add', '添加SEO关键字', 0, 0);
|
||||
INSERT INTO `cms_admin_rule` VALUES (63, 61, 'admin/keywords/post_submit', '保存SEO关键字', 0, 0);
|
||||
INSERT INTO `cms_admin_rule` VALUES (64, 61, 'admin/keywords/delete', '删除SEO关键字', 0, 0);
|
||||
INSERT INTO `cms_admin_rule` VALUES (65, 2, 'admin/search/index', '搜索关键字', 0, 0);
|
||||
INSERT INTO `cms_admin_rule` VALUES (66, 65, 'admin/search/delete', '删除搜索关键字', 0, 0);
|
||||
INSERT INTO `cms_admin_rule` VALUES (67, 3, 'admin/user/index', '用户管理', 0, 0);
|
||||
INSERT INTO `cms_admin_rule` VALUES (68, 67, 'admin/user/edit', '编辑用户信息', 0, 0);
|
||||
INSERT INTO `cms_admin_rule` VALUES (69, 67, 'admin/user/post_submit', '保存用户信息', 0, 0);
|
||||
INSERT INTO `cms_admin_rule` VALUES (70, 67, 'admin/user/view', '查看用户信息', 0, 0);
|
||||
INSERT INTO `cms_admin_rule` VALUES (71, 67, 'admin/user/delete', '禁用用户',0, 0);
|
||||
INSERT INTO `cms_admin_rule` VALUES (72, 3, 'admin/user/record', '操作记录', 0, 0);
|
||||
INSERT INTO `cms_admin_rule` VALUES (73, 3, 'admin/user/log', '操作日志', 0, 0);
|
||||
INSERT INTO `cms_admin_rule` VALUES (74, 4, 'admin/article/cate', '文章分类', 0, 0);
|
||||
INSERT INTO `cms_admin_rule` VALUES (75, 74, 'admin/article/cate_add', '添加文章分类', 0, 0);
|
||||
INSERT INTO `cms_admin_rule` VALUES (76, 74, 'admin/article/cate_post_submit', '保存文章分类信息', 0, 0);
|
||||
INSERT INTO `cms_admin_rule` VALUES (77, 74, 'admin/article/cate_delete', '删除文章分类', 0, 0);
|
||||
INSERT INTO `cms_admin_rule` VALUES (78, 4, 'admin/article/index', '文章列表', 0, 0);
|
||||
INSERT INTO `cms_admin_rule` VALUES (79, 78, 'admin/article/add', '添加文章', 0, 0);
|
||||
INSERT INTO `cms_admin_rule` VALUES (80, 78, 'admin/article/post_submit', '保存文章信息', 0, 0);
|
||||
INSERT INTO `cms_admin_rule` VALUES (81, 78, 'admin/article/delete', '删除文章', 0, 0);
|
||||
|
||||
-- ----------------------------
|
||||
-- Table structure for `cms_admin_log`
|
||||
-- ----------------------------
|
||||
DROP TABLE IF EXISTS `cms_admin_log`;
|
||||
CREATE TABLE `cms_admin_log` (
|
||||
`id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT 'ID',
|
||||
`uid` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '用户ID',
|
||||
`nickname` varchar(200) NOT NULL DEFAULT '' COMMENT '昵称',
|
||||
`nickname` varchar(255) NOT NULL DEFAULT '' COMMENT '昵称',
|
||||
`type` varchar(80) NOT NULL DEFAULT '' COMMENT '操作类型',
|
||||
`title` varchar(80) NOT NULL DEFAULT '' COMMENT '操作标题',
|
||||
`title` varchar(255) NOT NULL DEFAULT '' COMMENT '操作标题',
|
||||
`content` text COMMENT '操作描述',
|
||||
`module` varchar(32) NOT NULL DEFAULT '' COMMENT '模块',
|
||||
`controller` varchar(32) NOT NULL DEFAULT '' COMMENT '控制器',
|
||||
`function` varchar(32) NOT NULL DEFAULT '' COMMENT '方法',
|
||||
`rule_menu` varchar(80) NOT NULL DEFAULT '' COMMENT '节点权限路径',
|
||||
`admin_menu` varchar(80) NOT NULL DEFAULT '' COMMENT '节点权限名称',
|
||||
`rule_menu` varchar(255) NOT NULL DEFAULT '' COMMENT '节点权限路径',
|
||||
`admin_menu` varchar(255) NOT NULL DEFAULT '' COMMENT '节点权限名称',
|
||||
`ip` varchar(64) NOT NULL DEFAULT '' COMMENT '登录ip',
|
||||
`param_id` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '操作数据id',
|
||||
`param` text COMMENT '参数json格式',
|
||||
`status` tinyint(1) NOT NULL DEFAULT '1' COMMENT '0删除 1正常',
|
||||
`create_time` int(11) NOT NULL DEFAULT '0' COMMENT '创建时间',
|
||||
PRIMARY KEY (`id`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='后台操作日志表';
|
||||
) ENGINE=InnoDB DEFAULT CHARACTER SET = utf8mb4 COMMENT='后台操作日志表';
|
||||
|
||||
-- ----------------------------
|
||||
-- Table structure for `cms_config`
|
||||
-- ----------------------------
|
||||
DROP TABLE IF EXISTS `cms_config`;
|
||||
CREATE TABLE `cms_config` (
|
||||
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
|
||||
`title` varchar(100) NOT NULL DEFAULT '' COMMENT '配置名称',
|
||||
`name` varchar(100) NOT NULL DEFAULT '' COMMENT '配置标识',
|
||||
`title` varchar(255) NOT NULL DEFAULT '' COMMENT '配置名称',
|
||||
`name` varchar(255) NOT NULL DEFAULT '' COMMENT '配置标识',
|
||||
`content` text NULL COMMENT '配置内容',
|
||||
`status` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态:-1删除 0禁用 1启用',
|
||||
`create_time` int(11) NOT NULL DEFAULT '0' COMMENT '创建时间',
|
||||
`update_time` int(11) NOT NULL DEFAULT '0' COMMENT '更新时间',
|
||||
PRIMARY KEY (`id`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='系统配置';
|
||||
) ENGINE=InnoDB DEFAULT CHARACTER SET = utf8mb4 COMMENT='系统配置';
|
||||
-- ----------------------------
|
||||
-- Records of cms_config
|
||||
-- ----------------------------
|
||||
@ -271,15 +259,16 @@ INSERT INTO `cms_config` VALUES (4, '其他配置', 'other', 'a:3:{s:2:\"id\";s:
|
||||
-- ----------------------------
|
||||
-- Table structure for `cms_keywords`
|
||||
-- ----------------------------
|
||||
DROP TABLE IF EXISTS `cms_keywords`;
|
||||
CREATE TABLE `cms_keywords` (
|
||||
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
|
||||
`title` varchar(100) NOT NULL DEFAULT '' COMMENT '关键字名称',
|
||||
`title` varchar(255) NOT NULL DEFAULT '' COMMENT '关键字名称',
|
||||
`sort` int(11) NOT NULL DEFAULT '0' COMMENT '排序',
|
||||
`status` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态:-1删除 0禁用 1启用',
|
||||
`create_time` int(11) NOT NULL DEFAULT '0' COMMENT '创建时间',
|
||||
`update_time` int(11) NOT NULL DEFAULT '0' COMMENT '更新时间',
|
||||
PRIMARY KEY (`id`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='关键字';
|
||||
) ENGINE=InnoDB DEFAULT CHARACTER SET = utf8mb4 COMMENT='关键字';
|
||||
-- ----------------------------
|
||||
-- Records of cms_keywords
|
||||
-- ----------------------------
|
||||
@ -293,13 +282,13 @@ CREATE TABLE `cms_article_cate` (
|
||||
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
|
||||
`pid` int(11) NOT NULL DEFAULT '0' COMMENT '父类ID',
|
||||
`sort` int(5) NOT NULL DEFAULT '0' COMMENT '排序',
|
||||
`title` varchar(50) NOT NULL DEFAULT '' COMMENT '标题',
|
||||
`keywords` varchar(1000) DEFAULT '' COMMENT '关键字',
|
||||
`title` varchar(255) NOT NULL DEFAULT '' COMMENT '标题',
|
||||
`keywords` varchar(255) DEFAULT '' COMMENT '关键字',
|
||||
`desc` varchar(1000) DEFAULT '' COMMENT '描述',
|
||||
`create_time` int(11) NOT NULL DEFAULT '0' COMMENT '添加时间',
|
||||
`update_time` int(11) NOT NULL DEFAULT '0' COMMENT '修改时间',
|
||||
PRIMARY KEY (`id`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='内容分类';
|
||||
) ENGINE=InnoDB DEFAULT CHARACTER SET = utf8mb4 COMMENT='内容分类';
|
||||
-- ----------------------------
|
||||
-- Records of cms_article_cate
|
||||
-- ----------------------------
|
||||
@ -311,11 +300,11 @@ INSERT INTO `cms_article_cate` VALUES (1, 0, 0, '勾股cms', '1', '分类描述
|
||||
DROP TABLE IF EXISTS `cms_article`;
|
||||
CREATE TABLE `cms_article` (
|
||||
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
|
||||
`title` varchar(200) NOT NULL DEFAULT '' COMMENT '标题',
|
||||
`keywords` varchar(1000) DEFAULT '' COMMENT '关键字',
|
||||
`title` varchar(255) NOT NULL DEFAULT '' COMMENT '标题',
|
||||
`keywords` varchar(255) DEFAULT '' COMMENT '关键字',
|
||||
`desc` varchar(1000) DEFAULT '' COMMENT '摘要',
|
||||
`status` int(1) NOT NULL DEFAULT '1' COMMENT '1正常-1下架',
|
||||
`thumb` varchar(1000) NOT NULL DEFAULT '' COMMENT '缩略图',
|
||||
`thumb` varchar(255) NOT NULL DEFAULT '' COMMENT '缩略图',
|
||||
`origin` varchar(255) NOT NULL DEFAULT '' COMMENT '来源',
|
||||
`origin_url` varchar(255) NOT NULL DEFAULT '' COMMENT '来源地址',
|
||||
`content` text NOT NULL,
|
||||
@ -328,7 +317,7 @@ CREATE TABLE `cms_article` (
|
||||
`update_time` int(11) NOT NULL DEFAULT '0',
|
||||
`delete_time` int(11) NOT NULL DEFAULT '0',
|
||||
PRIMARY KEY (`id`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='文章';
|
||||
) ENGINE=InnoDB DEFAULT CHARACTER SET = utf8mb4 COMMENT='文章';
|
||||
|
||||
-- ----------------------------
|
||||
-- Records of cms_article
|
||||
@ -338,6 +327,7 @@ INSERT INTO `cms_article` VALUES (1, '勾股CMS简介', '', '', 1, '', '', '', '
|
||||
-- ----------------------------
|
||||
-- Table structure for `cms_article_keywords`
|
||||
-- ----------------------------
|
||||
DROP TABLE IF EXISTS `cms_article_keywords`;
|
||||
CREATE TABLE `cms_article_keywords` (
|
||||
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
|
||||
`aid` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '文章ID',
|
||||
@ -347,25 +337,25 @@ CREATE TABLE `cms_article_keywords` (
|
||||
PRIMARY KEY (`id`),
|
||||
KEY `aid` (`aid`),
|
||||
KEY `inid` (`keywords_id`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='文章关联关键字';
|
||||
) ENGINE=InnoDB DEFAULT CHARACTER SET = utf8mb4 COMMENT='文章关联关键字';
|
||||
-- ----------------------------
|
||||
-- Records of cms_article_keywords
|
||||
-- ----------------------------
|
||||
INSERT INTO `cms_article_keywords` VALUES (1, 1, 1, 1, 1610198553);
|
||||
|
||||
-- ----------------------------
|
||||
-- Table structure for fr_unitax_sitemap_cate
|
||||
-- Table structure for cms_sitemap_cate
|
||||
-- ----------------------------
|
||||
DROP TABLE IF EXISTS `cms_sitemap_cate`;
|
||||
CREATE TABLE `cms_sitemap_cate` (
|
||||
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
|
||||
`name` varchar(50) NOT NULL DEFAULT '' COMMENT '分类名称',
|
||||
`name` varchar(255) NOT NULL DEFAULT '' COMMENT '分类名称',
|
||||
`status` int(1) NOT NULL DEFAULT 1 COMMENT '1可用-1禁用',
|
||||
`sort` int(11) NOT NULL DEFAULT 0 COMMENT '排序',
|
||||
`create_time` int(11) NOT NULL DEFAULT 0,
|
||||
`update_time` int(11) NOT NULL DEFAULT 0,
|
||||
PRIMARY KEY (`id`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT = '网站地图分类';
|
||||
) ENGINE=InnoDB DEFAULT CHARACTER SET = utf8mb4 COMMENT = '网站地图分类';
|
||||
|
||||
-- ----------------------------
|
||||
-- Table structure for cms_sitemap
|
||||
@ -374,17 +364,17 @@ DROP TABLE IF EXISTS `cms_sitemap`;
|
||||
CREATE TABLE `cms_sitemap` (
|
||||
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
|
||||
`sitemap_cate_id` int(11) NOT NULL DEFAULT 0 COMMENT '分类id',
|
||||
`name` varchar(50) NOT NULL DEFAULT '' COMMENT '标题',
|
||||
`name` varchar(255) NOT NULL DEFAULT '' COMMENT '标题',
|
||||
`pc_img` varchar(255) NULL DEFAULT NULL COMMENT 'pc端图片',
|
||||
`pc_src` varchar(100) NULL DEFAULT NULL COMMENT 'pc端链接',
|
||||
`pc_src` varchar(255) NULL DEFAULT NULL COMMENT 'pc端链接',
|
||||
`mobile_img` varchar(255) NULL DEFAULT NULL COMMENT '移动端图片',
|
||||
`mobile_src` varchar(100) NULL DEFAULT NULL COMMENT '移动端链接',
|
||||
`mobile_src` varchar(255) NULL DEFAULT NULL COMMENT '移动端链接',
|
||||
`status` int(1) NOT NULL DEFAULT 1 COMMENT '1可用-1禁用',
|
||||
`sort` int(11) NOT NULL DEFAULT 0 COMMENT '排序',
|
||||
`create_time` int(11) NOT NULL DEFAULT 0,
|
||||
`update_time` int(11) NOT NULL DEFAULT 0,
|
||||
PRIMARY KEY (`id`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT = '网站地图内容';
|
||||
) ENGINE=InnoDB DEFAULT CHARACTER SET = utf8mb4 COMMENT = '网站地图内容';
|
||||
|
||||
|
||||
-- ----------------------------
|
||||
@ -393,14 +383,14 @@ CREATE TABLE `cms_sitemap` (
|
||||
DROP TABLE IF EXISTS `cms_nav`;
|
||||
CREATE TABLE `cms_nav` (
|
||||
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
|
||||
`title` varchar(50) NOT NULL DEFAULT '',
|
||||
`name` varchar(50) NOT NULL DEFAULT '' COMMENT '标识',
|
||||
`title` varchar(255) NOT NULL DEFAULT '',
|
||||
`name` varchar(255) NOT NULL DEFAULT '' COMMENT '标识',
|
||||
`status` int(1) NOT NULL DEFAULT '1' COMMENT '1可用-1禁用',
|
||||
`desc` varchar(255) DEFAULT NULL,
|
||||
`desc` varchar(1000) DEFAULT NULL,
|
||||
`create_time` int(11) NOT NULL DEFAULT '0',
|
||||
`update_time` int(11) NOT NULL DEFAULT '0',
|
||||
PRIMARY KEY (`id`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='导航';
|
||||
) ENGINE=InnoDB DEFAULT CHARACTER SET = utf8mb4 COMMENT='导航';
|
||||
|
||||
-- -----------------------------
|
||||
-- Records of `cms_nav`
|
||||
@ -415,16 +405,16 @@ CREATE TABLE `cms_nav_info` (
|
||||
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
|
||||
`pid` int(11) NOT NULL DEFAULT '0',
|
||||
`nav_id` int(11) unsigned NOT NULL DEFAULT '0',
|
||||
`title` varchar(225) DEFAULT '',
|
||||
`src` varchar(100) DEFAULT NULL,
|
||||
`param` varchar(100) DEFAULT NULL,
|
||||
`title` varchar(255) DEFAULT '',
|
||||
`src` varchar(255) DEFAULT NULL,
|
||||
`param` varchar(255) DEFAULT NULL,
|
||||
`target` int(1) NOT NULL DEFAULT '0' COMMENT '是否新窗口打开,默认0,1新窗口打开',
|
||||
`status` int(1) NOT NULL DEFAULT '1' COMMENT '1可用,-1禁用',
|
||||
`sort` int(11) NOT NULL DEFAULT '0',
|
||||
`create_time` int(11) NOT NULL DEFAULT '0',
|
||||
`update_time` int(11) NOT NULL DEFAULT '0',
|
||||
PRIMARY KEY (`id`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='导航详情';
|
||||
) ENGINE=InnoDB DEFAULT CHARACTER SET = utf8mb4 COMMENT='导航详情';
|
||||
|
||||
-- -----------------------------
|
||||
-- Records of `cms_nav_info`
|
||||
@ -441,14 +431,14 @@ INSERT INTO `cms_nav_info` VALUES ('5', '0', '1', '阿里云特惠', 'https://ww
|
||||
DROP TABLE IF EXISTS `cms_slide`;
|
||||
CREATE TABLE `cms_slide` (
|
||||
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
|
||||
`title` varchar(50) NOT NULL DEFAULT '',
|
||||
`name` varchar(50) NOT NULL DEFAULT '' COMMENT '标识',
|
||||
`title` varchar(255) NOT NULL DEFAULT '',
|
||||
`name` varchar(255) NOT NULL DEFAULT '' COMMENT '标识',
|
||||
`status` int(1) NOT NULL DEFAULT '1' COMMENT '1可用-1禁用',
|
||||
`desc` varchar(255) DEFAULT NULL,
|
||||
`desc` varchar(1000) DEFAULT NULL,
|
||||
`create_time` int(11) NOT NULL DEFAULT '0',
|
||||
`update_time` int(11) NOT NULL DEFAULT '0',
|
||||
PRIMARY KEY (`id`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='幻灯片';
|
||||
) ENGINE=InnoDB DEFAULT CHARACTER SET = utf8mb4 COMMENT='幻灯片';
|
||||
|
||||
-- ----------------------------
|
||||
-- Records of cms_slide
|
||||
@ -462,16 +452,16 @@ DROP TABLE IF EXISTS `cms_slide_info`;
|
||||
CREATE TABLE `cms_slide_info` (
|
||||
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
|
||||
`slide_id` int(11) unsigned NOT NULL DEFAULT '0',
|
||||
`title` varchar(225) DEFAULT NULL,
|
||||
`desc` varchar(255) DEFAULT NULL,
|
||||
`title` varchar(255) DEFAULT NULL,
|
||||
`desc` varchar(1000) DEFAULT NULL,
|
||||
`img` varchar(255) NOT NULL DEFAULT '',
|
||||
`src` varchar(100) DEFAULT NULL,
|
||||
`src` varchar(255) DEFAULT NULL,
|
||||
`status` int(1) NOT NULL DEFAULT '1' COMMENT '1可用-1禁用',
|
||||
`sort` int(11) NOT NULL DEFAULT '0',
|
||||
`create_time` int(11) NOT NULL DEFAULT '0',
|
||||
`update_time` int(11) NOT NULL DEFAULT '0',
|
||||
PRIMARY KEY (`id`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='幻灯片详情';
|
||||
) ENGINE=InnoDB DEFAULT CHARACTER SET = utf8mb4 COMMENT='幻灯片详情';
|
||||
|
||||
-- ----------------------------
|
||||
-- Records of cms_slide_info
|
||||
@ -487,7 +477,7 @@ CREATE TABLE `cms_search_keywords` (
|
||||
`times` int(11) NOT NULL DEFAULT 0 COMMENT '搜索次数',
|
||||
`type` tinyint(4) NOT NULL DEFAULT 1 COMMENT '1,2',
|
||||
PRIMARY KEY (`id`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT = '搜索关键字表';
|
||||
) ENGINE=InnoDB DEFAULT CHARACTER SET = utf8mb4 COMMENT = '搜索关键字表';
|
||||
|
||||
-- ----------------------------
|
||||
-- Table structure for cms_user
|
||||
@ -495,37 +485,37 @@ CREATE TABLE `cms_search_keywords` (
|
||||
DROP TABLE IF EXISTS `cms_user`;
|
||||
CREATE TABLE `cms_user` (
|
||||
`id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT '用户ID',
|
||||
`nickname` varchar(20) NOT NULL DEFAULT '' COMMENT '用户微信昵称',
|
||||
`nickname_a` varchar(20) NOT NULL DEFAULT '' COMMENT '用户微信昵称16进制',
|
||||
`name` varchar(20) NOT NULL DEFAULT '' COMMENT '真实姓名',
|
||||
`username` varchar(20) NOT NULL DEFAULT '' COMMENT '账号',
|
||||
`nickname` varchar(255) NOT NULL DEFAULT '' COMMENT '用户微信昵称',
|
||||
`nickname_a` varchar(255) NOT NULL DEFAULT '' COMMENT '用户微信昵称16进制',
|
||||
`username` varchar(255) NOT NULL DEFAULT '' COMMENT '账号',
|
||||
`password` varchar(255) NOT NULL DEFAULT '' COMMENT '密码',
|
||||
`salt` varchar(20) NOT NULL DEFAULT '' COMMENT '密码盐',
|
||||
`salt` varchar(255) NOT NULL DEFAULT '' COMMENT '密码盐',
|
||||
`name` varchar(255) NOT NULL DEFAULT '' COMMENT '真实姓名',
|
||||
`mobile` varchar(20) NOT NULL DEFAULT '' COMMENT '手机(也可以作为登录账号)',
|
||||
`mobile_status` tinyint(1) NOT NULL DEFAULT 0 COMMENT '手机绑定状态: 0未绑定 1已绑定',
|
||||
`email` varchar(50) NOT NULL DEFAULT '' COMMENT '邮箱',
|
||||
`headimgurl` varchar(255) NOT NULL DEFAULT '' COMMENT '微信头像',
|
||||
`sex` tinyint(1) NOT NULL DEFAULT 0 COMMENT '性别 0:未知 1:女 2:男 ',
|
||||
`desc` varchar(255) NOT NULL DEFAULT '' COMMENT '个人简介',
|
||||
`desc` varchar(1000) NOT NULL DEFAULT '' COMMENT '个人简介',
|
||||
`birthday` int(11) NULL DEFAULT '0' COMMENT '生日',
|
||||
`country` varchar(20) NOT NULL DEFAULT '' COMMENT '国家',
|
||||
`province` varchar(20) NOT NULL DEFAULT '' COMMENT '省',
|
||||
`city` varchar(20) NOT NULL DEFAULT '' COMMENT '城市',
|
||||
`company` varchar(50) NOT NULL DEFAULT '' COMMENT '公司',
|
||||
`address` varchar(100) NOT NULL DEFAULT '' COMMENT '公司地址',
|
||||
`company` varchar(255) NOT NULL DEFAULT '' COMMENT '公司',
|
||||
`address` varchar(255) NOT NULL DEFAULT '' COMMENT '公司地址',
|
||||
`depament` varchar(20) NOT NULL DEFAULT '' COMMENT '部门',
|
||||
`position` varchar(20) NOT NULL DEFAULT '' COMMENT '职位',
|
||||
`puid` int(11) NOT NULL DEFAULT 0 COMMENT '推荐人ID,默认是0',
|
||||
`qrcode_invite` int(11) NOT NULL DEFAULT 0 COMMENT '邀请场景二维码id',
|
||||
`status` tinyint(1) NOT NULL DEFAULT 1 COMMENT '状态 -1删除 0禁用 1正常 ',
|
||||
`last_login_time` int(11) NOT NULL DEFAULT '0' COMMENT '最后登录时间',
|
||||
`last_login_ip` varchar(20) NOT NULL DEFAULT '' COMMENT '最后登录IP',
|
||||
`last_login_ip` varchar(64) NOT NULL DEFAULT '' COMMENT '最后登录IP',
|
||||
`login_num` int(11) NOT NULL DEFAULT '0',
|
||||
`register_time` int(11) NOT NULL DEFAULT '0' COMMENT '注册时间',
|
||||
`register_ip` varchar(20) NOT NULL DEFAULT '' COMMENT '注册IP',
|
||||
`register_ip` varchar(64) NOT NULL DEFAULT '' COMMENT '注册IP',
|
||||
`wx_platform` int(11) NOT NULL DEFAULT 0 COMMENT '首次注册来自于哪个微信平台',
|
||||
PRIMARY KEY (`id`)
|
||||
) ENGINE = InnoDB DEFAULT CHARSET=utf8 COMMENT = '用户表';
|
||||
) ENGINE = InnoDB DEFAULT CHARACTER SET = utf8mb4 COMMENT = '用户表';
|
||||
|
||||
-- ----------------------------
|
||||
-- Table structure for `cms_user_log`
|
||||
@ -534,8 +524,8 @@ DROP TABLE IF EXISTS `cms_user_log`;
|
||||
CREATE TABLE `cms_user_log` (
|
||||
`id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT 'ID',
|
||||
`uid` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '用户ID',
|
||||
`nickname` varchar(200) NOT NULL DEFAULT '' COMMENT '昵称',
|
||||
`type` varchar(200) NOT NULL DEFAULT '' COMMENT '操作类型',
|
||||
`nickname` varchar(255) NOT NULL DEFAULT '' COMMENT '昵称',
|
||||
`type` varchar(80) NOT NULL DEFAULT '' COMMENT '操作类型',
|
||||
`title` varchar(80) NOT NULL DEFAULT '' COMMENT '操作标题',
|
||||
`content` text COMMENT '操作描述',
|
||||
`module` varchar(32) NOT NULL DEFAULT '' COMMENT '模块',
|
||||
@ -547,7 +537,7 @@ CREATE TABLE `cms_user_log` (
|
||||
`status` tinyint(1) NOT NULL DEFAULT '1' COMMENT '0删除 1正常',
|
||||
`create_time` int(11) NOT NULL DEFAULT '0' COMMENT '创建时间',
|
||||
PRIMARY KEY (`id`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='用户操作日志表';
|
||||
) ENGINE=InnoDB DEFAULT CHARACTER SET = utf8mb4 COMMENT='用户操作日志表';
|
||||
|
||||
-- ----------------------------
|
||||
-- Table structure for `cms_file`
|
||||
@ -558,9 +548,9 @@ CREATE TABLE `cms_file` (
|
||||
`module` varchar(15) NOT NULL DEFAULT '' COMMENT '所属模块',
|
||||
`sha1` varchar(60) NOT NULL COMMENT 'sha1',
|
||||
`md5` varchar(60) NOT NULL COMMENT 'md5',
|
||||
`name` varchar(200) NOT NULL DEFAULT '' COMMENT '原始文件名',
|
||||
`filename` varchar(200) NOT NULL DEFAULT '' COMMENT '文件名',
|
||||
`filepath` varchar(200) NOT NULL DEFAULT '' COMMENT '文件路径+文件名',
|
||||
`name` varchar(255) NOT NULL DEFAULT '' COMMENT '原始文件名',
|
||||
`filename` varchar(255) NOT NULL DEFAULT '' COMMENT '文件名',
|
||||
`filepath` varchar(255) NOT NULL DEFAULT '' COMMENT '文件路径+文件名',
|
||||
`filesize` int(10) NOT NULL DEFAULT 0 COMMENT '文件大小',
|
||||
`fileext` varchar(10) NOT NULL DEFAULT '' COMMENT '文件后缀',
|
||||
`mimetype` varchar(100) NOT NULL DEFAULT '' COMMENT '文件类型',
|
||||
@ -571,7 +561,7 @@ CREATE TABLE `cms_file` (
|
||||
`admin_id` int(11) NOT NULL COMMENT '审核者id',
|
||||
`audit_time` int(11) NOT NULL DEFAULT '0' COMMENT '审核时间',
|
||||
`action` varchar(50) NOT NULL DEFAULT '' COMMENT '来源模块功能',
|
||||
`use` varchar(200) NULL DEFAULT NULL COMMENT '用处',
|
||||
`use` varchar(255) NULL DEFAULT NULL COMMENT '用处',
|
||||
`download` int(11) NOT NULL DEFAULT 0 COMMENT '下载量',
|
||||
PRIMARY KEY (`id`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='文件表';
|
||||
) ENGINE=InnoDB DEFAULT CHARACTER SET = utf8mb4 COMMENT='文件表';
|
||||
|
@ -1 +0,0 @@
|
||||
<?php return ['admin_title'=>'勾股CMS','title'=>'勾股cms','keywords'=>'123446','logo'=>'','desc'=>'234555','icp'=>'粤ICP备xxxxxxxxx号-1','code'=>'','domain'=>'123446','version'=>'1.2.0','port_cache_time'=>''];
|
Loading…
x
Reference in New Issue
Block a user