勾股CMS2.0版本,重构了系统菜单功能模块、权限模块,新增商品功能,以及其他功能模块的优化。
This commit is contained in:
parent
1d15617cb0
commit
1747797e44
@ -27,7 +27,7 @@ class Log extends BaseController
|
||||
if (!empty($param['action'])) {
|
||||
$where['action'] = $param['action'];
|
||||
}
|
||||
$rows = empty($param['limit']) ? get_config(''app . page_size'') : $param['limit'];
|
||||
$rows = empty($param['limit']) ? get_config('app . page_size') : $param['limit'];
|
||||
$content = DB::name('AdminLog')
|
||||
->field("id,uid,nickname,action,title,content,rule_menu,ip,param_id,param,FROM_UNIXTIME(create_time,'%Y-%m-%d %H:%i:%s') create_time")
|
||||
->order('create_time desc')
|
||||
|
@ -61,6 +61,7 @@ class User extends BaseController
|
||||
$param = get_params();
|
||||
if (request()->isAjax()) {
|
||||
if (!empty($param['id']) && $param['id'] > 0) {
|
||||
$param['update_time'] = time();
|
||||
$res = Db::name('User')->where(['id' => $param['id']])->strict(false)->field(true)->update($param);
|
||||
if ($res) {
|
||||
add_log('edit', $param['id'], $param);
|
||||
|
@ -50,7 +50,7 @@ CREATE TABLE `cms_admin_group` (
|
||||
-- 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', '超级管理员,系统自动分配所有可操作权限及菜单。', '0', '0');
|
||||
INSERT INTO `cms_admin_group` VALUES (2, '测试角色', 1, '1,11,15,18,21,26,28,29,30,33,2,37,40,46,49,52,55,58,3,60,63,65,67,68,4,69,72,5,75,78', '测试角色', 0, 0);
|
||||
INSERT INTO `cms_admin_group` VALUES (2, '测试角色', 1, '1,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,2,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,3,60,61,62,63,64,65,66,67,68,4,69,70,71,72,73,74,5,75,76,77,78,79,80', '测试角色', 0, 0);
|
||||
-- ----------------------------
|
||||
-- Table structure for `cms_admin_group_access`
|
||||
-- ----------------------------
|
||||
@ -543,6 +543,7 @@ CREATE TABLE `cms_user` (
|
||||
`login_num` int(11) NOT NULL DEFAULT '0',
|
||||
`register_time` int(11) NOT NULL DEFAULT '0' COMMENT '注册时间',
|
||||
`register_ip` varchar(64) NOT NULL DEFAULT '' COMMENT '注册IP',
|
||||
`update_time` int(11) NOT NULL DEFAULT '0' COMMENT '信息更新时间',
|
||||
`wx_platform` int(11) NOT NULL DEFAULT 0 COMMENT '首次注册来自于哪个微信平台',
|
||||
PRIMARY KEY (`id`)
|
||||
) ENGINE = InnoDB DEFAULT CHARACTER SET = utf8mb4 COMMENT = '用户表';
|
||||
|
Loading…
x
Reference in New Issue
Block a user