|
@@ -140,9 +140,9 @@ class Paper extends Base
|
|
|
//次数限制
|
|
|
if ($paper['limit_count'] > 0){
|
|
|
|
|
|
- $my_count = Db::name('exam_grade')->where('user_id', $user_id)->where('paper_id', $paper_id)->count();
|
|
|
+ $my_count = Db::name('exam_grade')->where('user_id', $user_id)->where('paper_id', $paper_id)->where('status',2)->count();
|
|
|
if($my_count >= $paper['limit_count']) {
|
|
|
- $this->error('该试卷您的考试次数已达上限');
|
|
|
+ $this->error('在该科普中您的答题次数已达上限');
|
|
|
}
|
|
|
}
|
|
|
|