From ed518edfc2dd5e18d93a1418fc8e13475a283bcc Mon Sep 17 00:00:00 2001 From: yaooo <272523191@qq.com> Date: Thu, 9 Nov 2023 09:14:49 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E5=8F=91=E7=A5=A8=E5=88=B0?= =?UTF-8?q?=E8=B4=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/api/controller/OaApprove.php | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/app/api/controller/OaApprove.php b/app/api/controller/OaApprove.php index 16dc896..d209620 100644 --- a/app/api/controller/OaApprove.php +++ b/app/api/controller/OaApprove.php @@ -46,7 +46,7 @@ class OaApprove extends ApiController $departmentId = Db::name('Department')->where(['title' => '人事部'])->value('id'); if ($did == $departmentId) { $list[] = [ - "id" => 9999, + "id" => 9998, "type" => 4, "title" => "人力资源", "name" => "renliziyuan", @@ -58,6 +58,22 @@ class OaApprove extends ApiController "update_time" => "2022-01-10 16:21:32" ]; } + $auth = isAuthIncome($uid); + if ($auth) { + $list[] = [ + "id" => 9999, + "type" => 3, + "title" => "发票到账", + "name" => "daozhang", + "icon" => "icon-daozhang", + "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); }