Browse Source

Revert ""

This reverts commit 94e7615dec12eccaf15f48960622b255639049f0.
Karson 8 years ago
parent
commit
0b13e1efe3
1 changed files with 1 additions and 2 deletions
  1. 1 2
      application/admin/library/Auth.php

+ 1 - 2
application/admin/library/Auth.php

@@ -219,7 +219,7 @@ class Auth extends \fast\Auth
         {
             if (stripos($k, '/') === false)
             {
-                $url = '/' . $this->request->module() . '/' . $k;
+                $url = '/admin/' . $k;
             }
             else
             {
@@ -250,7 +250,6 @@ class Auth extends \fast\Auth
 
         $select_id = 0;
         $dashboard = rtrim(url('dashboard/'), '/');
-        $dashboard = stripos($dashboard, 'index.php') !== FALSE ? substr($dashboard, stripos($dashboard, 'index.php') + 9) : $dashboard;
         // 必须将结果集转换为数组
         $ruleList = collection(model('AuthRule')->where('ismenu', 1)->order('weigh', 'desc')->cache("__menu__")->select())->toArray();
         foreach ($ruleList as $k => &$v)