colly_wyx
2017-08-10 f7a98b088d5f7246cf12ee072169057a8e762664
application/core/System/Controller/Base.php
@@ -52,9 +52,13 @@
        $this->route = $this->getRoute();
        //初始化redis
        $this->redis = System_Service_Locator::getInstance()->get('redis');
        //if(!$this->redis->exists('modules') ){
        if(!$this->redis->exists('modules') ){
          $this->redis->set('modules', $this->getModules());
        //}
        }
         //更新角色权限
        if(!$this->redis->exists('role_auth')){
          Util::updateRoleAuth();
        }
        //是否渲染模板
        if(!empty($this->layout)){
            //根据角色权限访问