正在显示
1 个修改的文件
包含
12 行增加
和
2 行删除
@@ -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']; |
-
请 注册 或 登录 后发表评论