|
|
@@ -200,6 +200,9 @@ class TrainingLogic extends BaseLogic
|
|
|
{
|
|
|
try {
|
|
|
$workerCourse = TrainingWorkerCourse::where('id',$params['worker_course_id'])->findOrEmpty()->toArray();
|
|
|
+ if($workerCourse['study_status'] == 5) {
|
|
|
+ throw new \Exception('考试已通过,无需再考!');
|
|
|
+ }
|
|
|
$study_status = 0;
|
|
|
if(isset($params['is_resit']) && $params['is_resit'] == 1 && $workerCourse['study_status'] == 4){
|
|
|
// 重置
|