作者 sgj

圈子设置

... ... @@ -139,11 +139,43 @@ class GroupController extends AdminBaseController
}
$this->error('添加失败');
}
/**
*群内人员信息
*/
public function groupPeople(){
$Group=$this->GroupModel;
$group=$Group->getGroup(input('id'));
$map['g.delete_time']=null;
$map['g.group_id']=input('id');
$list=db('group_user')
->alias('g')
->where($map)
->join('user u','g.user_id=u.id')
->paginate('1');
$page = $list->render();
$this->assign('group', $group);
$this->assign('list', $list);
$this->assign('page', $page);
return $this->fetch();
}
/**
* 拉黑用户
*/
public function banUser(){
$map['user_id']=input('id');
$map['group_id']=input('group_id');
$result=db('group_user')->where($map)->delete();
if ($result==1){
$this->success('删除用户!');
}else{
$this->error('删除失败!');
}
}
public function groupPeopleAdd(){
}
}
\ No newline at end of file
... ...