소스 검색

关于pc权限的判断

lizhen_gitee 8 달 전
부모
커밋
7a89790a86
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  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);
         // 检测是否需要验证登录