Browse Source

关于pc权限的判断

lizhen_gitee 8 months ago
parent
commit
7a89790a86
1 changed files with 2 additions and 1 deletions
  1. 2 1
      application/common/controller/Apic.php

+ 2 - 1
application/common/controller/Apic.php

@@ -131,7 +131,8 @@ class Apic
         // token
         $token = $this->request->server('HTTP_TOKEN', $this->request->request('token', \think\Cookie::get('token')));
 
-        $path = str_replace('.', '/', $controllername) . '/' . $actionname;
+//        $path = str_replace('.', '/', $controllername) . '/' . $actionname;
+        $path = $modulename. '/' .str_replace('.', '/', $controllername) . '/' . $actionname;
         // 设置当前请求的URI
         $this->auth->setRequestUri($path);
         // 检测是否需要验证登录