From 9671a61005c2349e8c6270c090a247f1a902b1c5 Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Thu, 27 Jun 2024 21:24:51 +0800 Subject: [PATCH] 1 --- webapp/controller/BaseAuthedController.class.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/webapp/controller/BaseAuthedController.class.php b/webapp/controller/BaseAuthedController.class.php index 62f1bf0e..526a27d0 100644 --- a/webapp/controller/BaseAuthedController.class.php +++ b/webapp/controller/BaseAuthedController.class.php @@ -96,6 +96,11 @@ class BaseAuthedController extends BaseController { die(); } } + if (!(myself()->_getChannel() == IMTBL_CHANNEL || + myself()->_getChannel() == GUEST_CHANNEL)) { + phpcommon\sendError(1001, 'session expiration'); + die(); + } $r = $this->_getRedis($this->_getAccountId()); if (!(getReqVal('c', '') == 'User' && getReqVal('a', '') == 'login')) { if ((getReqVal('c', '') == 'Battle')) {