...
|
...
|
@@ -69,19 +69,27 @@ class VolunteerModel extends Model |
|
|
$userInfo['work_time']=$user['work_time'];
|
|
|
$userInfo['use_time']=$user['use_time']??0;
|
|
|
$userInfo['level_time']=$user['work_time']-$user['use_time'];
|
|
|
if ($user['study_time']<5){
|
|
|
$userInfo['status']='志愿者(待学习)';
|
|
|
$userInfo['user_num']='';
|
|
|
}
|
|
|
if ($userInfo['status']==2){
|
|
|
if ($user['study_time']<10){
|
|
|
$userInfo['status']='志愿者';
|
|
|
$userInfo['user_num']=$userId.$user['create_time'];
|
|
|
}
|
|
|
|
|
|
if ($user['study_time']<5){
|
|
|
$userInfo['status']='志愿者(待学习)';
|
|
|
$userInfo['user_num']='';
|
|
|
}
|
|
|
|
|
|
if ($user['study_time']>=5 && $user['study_time']<10){
|
|
|
$userInfo['status']='志愿者(待实习)';
|
|
|
if ($user['study_time']>=5 && $user['study_time']<10){
|
|
|
$userInfo['status']='志愿者(待实习)';
|
|
|
$userInfo['user_num']='';
|
|
|
}
|
|
|
}else{
|
|
|
$userInfo['status']='非志愿者';
|
|
|
$userInfo['user_num']='';
|
|
|
}
|
|
|
if ($user['study_time']<10){
|
|
|
$userInfo['status']='志愿者';
|
|
|
$userInfo['user_num']=$userId.$user['create_time'];
|
|
|
}
|
|
|
|
|
|
|
|
|
return $userInfo;
|
|
|
|
|
|
}
|
...
|
...
|
|