更新应用模块权限

This commit is contained in:
yaooo 2023-11-07 11:36:30 +08:00
parent c8b4c3bc44
commit f13834d80e
1 changed files with 17 additions and 12 deletions

View File

@ -40,18 +40,23 @@ class OaApprove extends ApiController
$list[$k]['create_time'] = date('Y-m-d H:i:s', $v['create_time']);
$list[$k]['update_time'] = date('Y-m-d H:i:s', $v['update_time']);
}
$list[] = [
"id" => 9999,
"type" => 4,
"title" => "人力资源",
"name" => "renliziyuan",
"icon" => "icon-renliziyuan",
"img" => "https://lihai001.oss-cn-chengdu.aliyuncs.com/public/kk/oa/renliziyuan.png",
"department_ids" => "",
"status" => 1,
"create_time" => "2022-01-10 16:21:32",
"update_time" => "2022-01-10 16:21:32"
];
$loginAdmin = Db::name('Admin')->where(['id' => $uid])->find();
$did = $loginAdmin['did'];
// 如果是人事部
if ($did == 2) {
$list[] = [
"id" => 9999,
"type" => 4,
"title" => "人力资源",
"name" => "renliziyuan",
"icon" => "icon-renliziyuan",
"img" => "https://lihai001.oss-cn-chengdu.aliyuncs.com/public/kk/oa/renliziyuan.png",
"department_ids" => "",
"status" => 1,
"create_time" => "2022-01-10 16:21:32",
"update_time" => "2022-01-10 16:21:32"
];
}
$this->apiSuccess('获取成功', $list);
}