public function _initialize() { parent::_initialize(); if ($this->judgeSumScore != -1) { $this->success('该题型你已经交卷,不能再查看了哦', $this->navigationUrl, 1); exit; } if ($this->judgeCount == 0) { redirect($this->navigationUrl); } }
public function _initialize() { parent::_initialize(); if ($this->programSumScore != -1) { $this->success('该题型你已经交卷,不能再查看了哦', $this->navigationUrl, 1); exit; } if ($this->programCount == 0) { redirect($this->navigationUrl); } if (!$this->checkOtherProblemHasSubmit()) { $this->alertError("只有其他题型全部完成之后才能做编程题!", $this->navigationUrl); } }