From 6969c335a8848ea763a61e66e4e06c350cc2abca Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Tue, 31 Jan 2023 16:04:51 +0800 Subject: [PATCH] 1 --- webapp/controller/BaseAuthedController.class.php | 10 ++++++---- webapp/controller/UserController.class.php | 1 + 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/webapp/controller/BaseAuthedController.class.php b/webapp/controller/BaseAuthedController.class.php index cede03d1..487b0696 100644 --- a/webapp/controller/BaseAuthedController.class.php +++ b/webapp/controller/BaseAuthedController.class.php @@ -48,10 +48,12 @@ class BaseAuthedController extends BaseController { public function _handlePre() { - if (getReqVal('client_uuid', '') != '499af8a0-a1bc-0b0e-dc79-a42cb3f103dc') { - if ((getReqVal('c', '') != 'Battle')) { - phpcommon\sendError(1001, 'session expiration'); - die(); + if (SERVER_ENV == _ONLINE) { + if (getReqVal('client_uuid', '') != '499af8a0-a1bc-0b0e-dc79-a42cb3f103dc') { + if ((getReqVal('c', '') != 'Battle')) { + phpcommon\sendError(1001, 'session expiration'); + die(); + } } } diff --git a/webapp/controller/UserController.class.php b/webapp/controller/UserController.class.php index 2aeac832..da655d92 100644 --- a/webapp/controller/UserController.class.php +++ b/webapp/controller/UserController.class.php @@ -152,6 +152,7 @@ class UserController extends BaseAuthedController { $awardService = new services\AwardService(); $propertyChgService = new services\PropertyChgService(); $this->_addItems($items, $awardService, $propertyChgService); + $this->_addItems($addItems, $awardService, $propertyChgService); } private function loginCheck($userInfo)