Commit 5d73e3d6085513747b2ea8563ac5bed059fbd9af

Authored by 程雨佳
1 parent 4a2241b2

关闭验证

Showing 1 changed file with 3 additions and 3 deletions
phpapi/AdminAuth.php
... ... @@ -8,8 +8,8 @@
8 8 header("Access-Control-Allow-Headers:Content-Type,token,X-Requested-With");
9 9 if(strtoupper($_SERVER['REQUEST_METHOD'])== 'OPTIONS'){
10 10 exit;
11   - }
12   - if (!isset($_SERVER['HTTP_TOKEN'])) {
  11 + }
  12 + /*if (!isset($_SERVER['HTTP_TOKEN'])) {
13 13 JsonResponse::error('未登录:token验证失败');
14 14 }
15 15 // 是否和管理员密钥保持一致
... ... @@ -18,4 +18,4 @@
18 18 $enctypt = new Encrypter();
19 19 if (md5($enctypt->decrypt($token)) != $config['admin']) {
20 20 JsonResponse::error('未登录:token验证失败');
21   - }
22 21 \ No newline at end of file
  22 + }*/
23 23 \ No newline at end of file
... ...