Commit fb64c3871e1cf395493db3a0df028927484d4692

Authored by 程雨佳
1 parent 951815ba

查看接收到的token

Showing 1 changed file with 2 additions and 1 deletions
phpapi/AdminAuth.php
@@ -8,7 +8,8 @@ @@ -8,7 +8,8 @@
8 header("Access-Control-Allow-Headers:Content-Type,token,X-Requested-With"); 8 header("Access-Control-Allow-Headers:Content-Type,token,X-Requested-With");
9 if(strtoupper($_SERVER['REQUEST_METHOD'])== 'OPTIONS'){ 9 if(strtoupper($_SERVER['REQUEST_METHOD'])== 'OPTIONS'){
10 exit; 10 exit;
11 - } 11 + }
  12 + print_r($_SERVER);exit;
12 if (!isset($_SERVER['HTTP_TOKEN'])) { 13 if (!isset($_SERVER['HTTP_TOKEN'])) {
13 JsonResponse::error('未登录:token验证失败'); 14 JsonResponse::error('未登录:token验证失败');
14 } 15 }