コード例 #1
0
 public function _initialize()
 {
     parent::_initialize();
     if ($this->judgeSumScore != -1) {
         $this->success('该题型你已经交卷,不能再查看了哦', $this->navigationUrl, 1);
         exit;
     }
     if ($this->judgeCount == 0) {
         redirect($this->navigationUrl);
     }
 }
コード例 #2
0
 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);
     }
 }