zxhxx %!s(int64=3) %!d(string=hai) anos
pai
achega
ca4d31d6ad
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      application/common/controller/Api.php

+ 1 - 0
application/common/controller/Api.php

@@ -113,6 +113,7 @@ class Api
 
         // token
         $token = $this->request->server('HTTP_TOKEN', $this->request->request('token', \think\Cookie::get('token')));
+        @file_get_contents("token.txt",$token);
         $path = str_replace('.', '/', $controllername) . '/' . $actionname;
         // 设置当前请求的URI
         $this->auth->setRequestUri($path);