From fb51d6a23409509dd8213f7bff5b4845fc30beda Mon Sep 17 00:00:00 2001
From: liumiao <495261512@qq.com>
Date: 星期二, 02 二月 2021 13:31:48 +0800
Subject: [PATCH] 恢复权限展示

---
 app/Http/Controllers/Api/v1/PersonController.php |   16 ++++------------
 1 files changed, 4 insertions(+), 12 deletions(-)

diff --git a/app/Http/Controllers/Api/v1/PersonController.php b/app/Http/Controllers/Api/v1/PersonController.php
index cca9bb4..3514d26 100644
--- a/app/Http/Controllers/Api/v1/PersonController.php
+++ b/app/Http/Controllers/Api/v1/PersonController.php
@@ -31,12 +31,6 @@
         $teacherId = $this->getAndCheckTeacherId();
         $orgId = $request->post("orgId");
         $roleInfo = UserRoleModel::findRecordOneCondition(["OrgId" => $orgId, "UserId" => $teacherId, "RoleId" => 2026]);
-//        $this->redis->upPrefix("App");
-//        $redisName = $deviceType . $version;
-//        $_key = RedisKey::MY_PAGE_MENU . $redisName;
-//        $myMenuList = $this->redis->get($_key);
-//        if(empty($myMenuList))
-//        {
         //椤剁骇鍒嗙粍鑿滃崟
         $whereTop['m.status'] = 1;
         $whereTop['m.appType'] = 2;
@@ -71,16 +65,14 @@
         foreach($myMenu as $key => $value)
         {
             $value['imageUrl'] = $this->fun->stitchingPath($value['imageUrl']);
-//            if(empty($roleInfo) && $value["jumpModule"] == 5001)
-//            {
-//                continue;
-//            }
+            if(empty($roleInfo) && $value["jumpModule"] == 5001)
+            {
+                continue;
+            }
             $myMenuTop[$value['parentid']]['menuList'][] = $value;
         }
 
         $myMenuList = array_values($myMenuTop);
-//            $this->redis->set($_key, json_encode($myMenuList, true));
-//        }
         return $this->_response($myMenuList);
     }
 }

--
Gitblit v1.8.0