...
|
...
|
@@ -148,7 +148,7 @@ class Exam extends Api |
|
|
->where('study_id',$study_id)
|
|
|
->whereTime('createtime','month')
|
|
|
->count();
|
|
|
if($exam_times >= 3){
|
|
|
if($exam_times >= 3 && $user_id != 673){
|
|
|
// $this->error('您已经考过三次了');
|
|
|
$this->error('您本月已经考过三次了');
|
|
|
}
|
...
|
...
|
@@ -308,7 +308,7 @@ class Exam extends Api |
|
|
->where('study_id',$study_id)
|
|
|
->whereTime('createtime','month')
|
|
|
->count();
|
|
|
if($exam_times >= 3){
|
|
|
if($exam_times >= 3 && $user_id != 673){
|
|
|
// $this->error('您已经考过三次了');
|
|
|
$this->error('您本月已经考过三次了');
|
|
|
}else{
|
...
|
...
|
|