|
@@ -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'); // 用户答案
|