...
|
...
|
@@ -24,11 +24,42 @@ Route::any('plugin/[:_plugin]/[:_controller]/[:_action]', "\\cmf\\controller\\Pl |
|
|
Route::get('captcha/new', "\\cmf\\controller\\CaptchaController@index");
|
|
|
|
|
|
|
|
|
/**
|
|
|
* 获取志愿者状态
|
|
|
* @param $work_time
|
|
|
* @param $study_time
|
|
|
* @param $status
|
|
|
* @return string
|
|
|
*/
|
|
|
function get_volunteer_status($work_time,$study_time,$status){
|
|
|
|
|
|
if ($status==1){
|
|
|
$return['code']=1;
|
|
|
$return['remark']='审核中';
|
|
|
}
|
|
|
if ($status==2){
|
|
|
if ($study_time>=5 && $work_time>10){
|
|
|
$userInfo['status']='志愿者';
|
|
|
$return['code']=4;
|
|
|
$return['remark']='实习完成待审核';
|
|
|
}
|
|
|
|
|
|
if ($study_time<5){
|
|
|
$userInfo['status']='志愿者(待学习)';
|
|
|
$userInfo['user_num']='';
|
|
|
$return['code']=2;
|
|
|
$return['remark']='';
|
|
|
}
|
|
|
|
|
|
if ($study_time>=5 && $work_time<10){
|
|
|
$userInfo['status']='志愿者(待实习)';
|
|
|
$userInfo['user_num']='';
|
|
|
|
|
|
function get_volunteer_status($work_time,$study_time){
|
|
|
|
|
|
$return['code']=3;
|
|
|
$return['remark']='学习完成待审核';
|
|
|
}
|
|
|
}
|
|
|
return $return['remark'];
|
|
|
}
|
|
|
/**
|
|
|
* 获取当前登录的管理员ID
|
...
|
...
|
|