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

修改志愿者列表

@@ -86,8 +86,18 @@ class MemberCenterController extends RestBaseController @@ -86,8 +86,18 @@ class MemberCenterController extends RestBaseController
86 $Team=new TeamModel(); 86 $Team=new TeamModel();
87 $Team->joinTeamList($user_id); 87 $Team->joinTeamList($user_id);
88 $user_team=$Team->joinTeamList($user_id); 88 $user_team=$Team->joinTeamList($user_id);
89 - $user['activity_num']=count($user_join);  
90 - $user['group_num']=count($user_team); 89 + if(empty($user_join)){
  90 + $user['activity_num']=0;
  91 + }else{
  92 + $user['activity_num']=count($user_join);
  93 + }
  94 + if (empty($user_team)){
  95 + $user['group_num']=count($user_team);
  96 + }else{
  97 + $user['group_num']=0;
  98 + }
  99 +
  100 +
91 $user['status']=$user_info['status']; 101 $user['status']=$user_info['status'];
92 $user['level']=$result['level']; 102 $user['level']=$result['level'];
93 $user['work_time']=$result['work_time']; 103 $user['work_time']=$result['work_time'];