|
@@ -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);
|
|
|
// 检测是否需要验证登录
|