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); }