...
|
...
|
@@ -141,6 +141,7 @@ class GroupGoods extends Api |
|
|
foreach ($list as $k=>$v){
|
|
|
$count = $teamGroupInfoModel->where('team_group_id',$v['team_group_id'])->count();
|
|
|
$list[$k]['num'] = $v['group_num'] - $count;
|
|
|
$list[$k]['grouptime'] = $v['grouptime'] - time();
|
|
|
}
|
|
|
$data['list'] = $list;
|
|
|
$this->success('请求成功', $data);
|
...
|
...
|
@@ -188,7 +189,7 @@ class GroupGoods extends Api |
|
|
else $newList[$i]['user_avatar'] = cdnurl(config('site.team_default_avatar')) ; //默认头像
|
|
|
}
|
|
|
$data['total'] = $team['group_num'];
|
|
|
$data['grouptime'] = $team['grouptime'];
|
|
|
$data['grouptime'] = $team['grouptime'] - time();
|
|
|
$data['num'] = count($list);
|
|
|
$data['list'] = $newList;
|
|
|
$this->success('请求成功', $data);
|
...
|
...
|
|