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