|
@@ -138,7 +138,8 @@ class IndexController extends WebBaseController
|
|
|
|
|
|
if($face_ticket && $appoint_info->face_audit == -1){
|
|
|
$face_health = RecruitSupplement::where("appoint_id",$appoint_info->id)->where("type","face")->where('h_status',1)->first();
|
|
|
- if(!$face_health){
|
|
|
+ if(!$face_health && $recruit->face_epidemic){
|
|
|
+ $appoint_info->face_ticket = -2;
|
|
|
$time = time();
|
|
|
if(strtotime($recruit->face_health_start) < $time && strtotime($recruit->face_health_end) > $time){
|
|
|
$appoint_info->face_ticket = -2;
|
|
@@ -146,7 +147,12 @@ class IndexController extends WebBaseController
|
|
|
$appoint_info->face_ticket = -3;
|
|
|
}
|
|
|
}else{
|
|
|
- $appoint_info->face_ticket = 1;
|
|
|
+ $time = time();
|
|
|
+ if(strtotime($recruit->face_health_start) < $time && strtotime($recruit->face_health_end) > $time){
|
|
|
+ $appoint_info->face_ticket = 1;
|
|
|
+ }else{
|
|
|
+ $appoint_info->face_ticket = -1;
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
}else{
|