This commit is contained in:
hujiabin 2024-09-20 18:50:09 +08:00
parent 9780c16ff8
commit 7e4c875ee6

View File

@ -21,13 +21,12 @@ class CircuitController extends BaseAuthedController {
{
parent::_handlePre();
if (!myself()->_switchIsOpen('circuitMatch')) {
$this->_rspErr(1, 'current stage Have not yet started');
return;
$this->_rspErr(1, 'server error1');
die;
}
if (!(count(CIRCUIT_MATCH_SERVER_LIST) <= 0 &&
in_array(myself()->_getZid(), CIRCUIT_MATCH_SERVER_LIST))) {
$this->_rspErr(1, 'current stage Have not yet started');
return;
if (!(count(CIRCUIT_MATCH_SERVER_LIST) <= 0 && in_array(myself()->_getZid(), CIRCUIT_MATCH_SERVER_LIST))) {
$this->_rspErr(1, 'server error2');
die;
}
}