From d69efe9b53a5409534c3ca23ea3a64684f885a29 Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Thu, 24 Nov 2022 10:34:47 +0800 Subject: [PATCH] 1 --- webapp/controller/BaseAuthedController.class.php | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/webapp/controller/BaseAuthedController.class.php b/webapp/controller/BaseAuthedController.class.php index 7c4efcf9..4262f686 100644 --- a/webapp/controller/BaseAuthedController.class.php +++ b/webapp/controller/BaseAuthedController.class.php @@ -59,13 +59,11 @@ class BaseAuthedController extends BaseController { die(); } } - /*if (myself()->_getAccountId() == '6513_2006_DamQi5nhRX4iDiloUbbx5XN36syWTJvC') { - phpcommon\sendError(1003, 'session expiration'); - die(); - }*/ - if (phpcommon\cmpVersion(getReqVal('_version', ''), '0.2.0') > 0) { - phpcommon\sendError(1002, ''); - die(); + if (SERVER_ENV == _ONLINE) { + if (phpcommon\cmpVersion(getReqVal('_version', ''), '0.2.0') > 0) { + phpcommon\sendError(1002, ''); + die(); + } } }