作者 sgj
1 个管道 的构建 失败 耗费 12 秒

修改志愿者列表

... ... @@ -86,8 +86,18 @@ class MemberCenterController extends RestBaseController
$Team=new TeamModel();
$Team->joinTeamList($user_id);
$user_team=$Team->joinTeamList($user_id);
$user['activity_num']=count($user_join);
$user['group_num']=count($user_team);
if(empty($user_join)){
$user['activity_num']=0;
}else{
$user['activity_num']=count($user_join);
}
if (empty($user_team)){
$user['group_num']=count($user_team);
}else{
$user['group_num']=0;
}
$user['status']=$user_info['status'];
$user['level']=$result['level'];
$user['work_time']=$result['work_time'];
... ...