From cbd83e10d00d8101c21194d4c0e2277c2b7590ae Mon Sep 17 00:00:00 2001 From: hdm Date: Sun, 20 Nov 2022 18:16:38 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E7=9F=A5=E8=AF=86=E5=88=86?= =?UTF-8?q?=E4=BA=ABbug=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/article/controller/Index.php | 2 +- app/install/data/gouguoa.sql | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/article/controller/Index.php b/app/article/controller/Index.php index 608314a..d46bf06 100644 --- a/app/article/controller/Index.php +++ b/app/article/controller/Index.php @@ -200,7 +200,7 @@ class Index extends BaseController } $share_dids = []; if(!empty($detail['share_dids'])){ - $share_uids = explode(',', $detail['share_dids']); + $share_dids = explode(',', $detail['share_dids']); } if($detail['uid'] !=$uid && !in_array($uid,$share_uids) && !in_array($did,$share_dids) && $detail['is_share'] !=1){ throw new \think\exception\HttpException(405, '无权限访问'); diff --git a/app/install/data/gouguoa.sql b/app/install/data/gouguoa.sql index 4d746f9..273a508 100644 --- a/app/install/data/gouguoa.sql +++ b/app/install/data/gouguoa.sql @@ -1028,9 +1028,9 @@ CREATE TABLE `oa_note` ( `content` text NOT NULL COMMENT '公告内容', `src` varchar(100) NULL DEFAULT NULL COMMENT '关联链接', `status` int(1) NOT NULL DEFAULT 1 COMMENT '1可用-1禁用', - `sort` int(11) NOT NULL DEFAULT 0, + `sort` int(11) NOT NULL DEFAULT 0 COMMENT '排序', `file_ids` varchar(500) NOT NULL DEFAULT '' COMMENT '相关附件', - `role_type` tinyint(1) NOT NULL DEFAULT 1 COMMENT '查看权限,0所有人,1部门,2人员', + `role_type` tinyint(1) NOT NULL DEFAULT 0 COMMENT '查看权限,0所有人,1部门,2人员', `role_dids` varchar(500) NOT NULL DEFAULT '' COMMENT '可查看部门', `role_uids` varchar(500) NOT NULL DEFAULT '' COMMENT '可查看用户', `start_time` int(11) NOT NULL DEFAULT 0 COMMENT '展示开始时间',