lizhen_gitee 4 miesięcy temu
rodzic
commit
8fb32f450f
1 zmienionych plików z 2 dodań i 2 usunięć
  1. 2 2
      application/api/controller/Question.php

+ 2 - 2
application/api/controller/Question.php

@@ -96,8 +96,8 @@ class Question extends Api
             $this->error('提交数据有误');
         }
         //避免超次数
-        if(count($user_questions) + $count >= $exam_times_user_eday){
-            $this->error('今日答题次数用完了,明天再来吧');
+        if(count($user_questions) + $count > $exam_times_user_eday){
+            $this->error('今日答题次数用完了,明天再来吧!');
         }
         $questions_ids  = array_column($user_questions, 'id');         // 答题id
         $answers        = array_column($user_questions, 'answer');     // 用户答案