This commit is contained in:
aozhiwei 2023-01-31 16:04:51 +08:00
parent 7b1b322b3e
commit 6969c335a8
2 changed files with 7 additions and 4 deletions

View File

@ -48,10 +48,12 @@ class BaseAuthedController extends BaseController {
public function _handlePre() public function _handlePre()
{ {
if (getReqVal('client_uuid', '') != '499af8a0-a1bc-0b0e-dc79-a42cb3f103dc') { if (SERVER_ENV == _ONLINE) {
if ((getReqVal('c', '') != 'Battle')) { if (getReqVal('client_uuid', '') != '499af8a0-a1bc-0b0e-dc79-a42cb3f103dc') {
phpcommon\sendError(1001, 'session expiration'); if ((getReqVal('c', '') != 'Battle')) {
die(); phpcommon\sendError(1001, 'session expiration');
die();
}
} }
} }

View File

@ -152,6 +152,7 @@ class UserController extends BaseAuthedController {
$awardService = new services\AwardService(); $awardService = new services\AwardService();
$propertyChgService = new services\PropertyChgService(); $propertyChgService = new services\PropertyChgService();
$this->_addItems($items, $awardService, $propertyChgService); $this->_addItems($items, $awardService, $propertyChgService);
$this->_addItems($addItems, $awardService, $propertyChgService);
} }
private function loginCheck($userInfo) private function loginCheck($userInfo)