From 7e4c875ee6fce80a0cdbd10a1c9681eb45783450 Mon Sep 17 00:00:00 2001 From: hujiabin <519660157@qq.com> Date: Fri, 20 Sep 2024 18:50:09 +0800 Subject: [PATCH] 1 --- webapp/controller/CircuitController.class.php | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/webapp/controller/CircuitController.class.php b/webapp/controller/CircuitController.class.php index 41c8778f..da79b128 100644 --- a/webapp/controller/CircuitController.class.php +++ b/webapp/controller/CircuitController.class.php @@ -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; } }