From f7bdf18e6a970dc675876b0093f8dcfd6ebd7a42 Mon Sep 17 00:00:00 2001 From: zhanglingsheng Date: Fri, 22 Nov 2019 01:07:59 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A4=BC=E5=8C=85=E8=B7=B3=E8=BD=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Sdk/Controller/BaseController.class.php | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/Application/Sdk/Controller/BaseController.class.php b/Application/Sdk/Controller/BaseController.class.php index 2fcc5f78..1624e646 100644 --- a/Application/Sdk/Controller/BaseController.class.php +++ b/Application/Sdk/Controller/BaseController.class.php @@ -147,17 +147,17 @@ class BaseController extends RestController{ $user['userId'] = M("user_token", "tab_")->where($where)->getField("user_id"); $user['userToken'] = $userToken; if (!$user['userId']) { - if (IS_AJAX) { - echo json_encode([ - 'code' => 200, - 'status' => 1, - 'url' => U('Spend/notice_logout',array('user_id'=>$user['userId'],'game_id'=>I("request.game_id", 0),'msg'=>'您已下线', 'user_token' => $userToken)) - ]); - exit(); - } else { + // if (IS_AJAX) { + // echo json_encode([ + // 'code' => 200, + // 'status' => 1, + // 'url' => U('Spend/notice_logout',array('user_id'=>$user['userId'],'game_id'=>I("request.game_id", 0),'msg'=>'您已下线', 'user_token' => $userToken)) + // ]); + // exit(); + // } else { redirect(U('Spend/notice_logout',array('user_id'=>$user['userId'],'game_id'=>I("request.game_id", 0),'msg'=>'您已下线', 'user_token' => $userToken))); - exit; - } + // exit; + // } // re_msg(12, $userToken."Token失效"); }