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()
{
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();
}
}
}

View File

@ -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)