This commit is contained in:
hujiabin 2024-09-20 18:58:32 +08:00
parent 7e4c875ee6
commit 9ef92b332b
2 changed files with 2 additions and 2 deletions

View File

@ -24,7 +24,7 @@ class CircuitController extends BaseAuthedController {
$this->_rspErr(1, 'server error1');
die;
}
if (!(count(CIRCUIT_MATCH_SERVER_LIST) <= 0 && in_array(myself()->_getZid(), CIRCUIT_MATCH_SERVER_LIST))) {
if (!(count(CIRCUIT_MATCH_SERVER_LIST) <= 0 || in_array(myself()->_getZid(), CIRCUIT_MATCH_SERVER_LIST))) {
$this->_rspErr(1, 'server error2');
die;
}

View File

@ -389,7 +389,7 @@ class OtherController extends BaseAuthedController {
if ($isOpen) {
if ($modeMeta['mapMode'] == \mt\MapMode::CIRCUIT_MODE){
if (myself()->_switchIsOpen('circuitMatch')) {
if (count(CIRCUIT_MATCH_SERVER_LIST) <= 0 &&
if (count(CIRCUIT_MATCH_SERVER_LIST) <= 0 ||
in_array(myself()->_getZid(), CIRCUIT_MATCH_SERVER_LIST)) {
array_unshift($modeList,$temp);
}