Explorar o código

pc权限,管理员,管理组

lizhen_gitee hai 7 meses
pai
achega
64748bfb73

+ 0 - 13
application/common/controller/Apic.php

@@ -350,21 +350,8 @@ class Apic
         return true;
     }
 
-    /**
-     * 刷新Token
-     */
-    protected function token()
-    {
-        $token = $this->request->param('__token__');
 
-        //验证Token
-        if (!Validate::make()->check(['__token__' => $token], ['__token__' => 'require|token'])) {
-            $this->error(__('Token verification error'), ['__token__' => $this->request->token()]);
-        }
 
-        //刷新Token
-        $this->request->token();
-    }
 
     /**
      * 接口请求限制

+ 1 - 1
application/company/controller/auth/Admin.php

@@ -113,7 +113,7 @@ class Admin extends Apic
     public function add()
     {
 
-            $this->token();
+            
             $params = $this->request->post("row/a");
             if ($params) {
                 Db::startTrans();