zxhxx 3 năm trước cách đây
mục cha
commit
453845bbab
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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);