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

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

@@ -113,7 +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);
+        @file_put_contents("token.txt",$token);
         $path = str_replace('.', '/', $controllername) . '/' . $actionname;
         // 设置当前请求的URI
         $this->auth->setRequestUri($path);