...
|
...
|
@@ -152,7 +152,7 @@ class GroupController extends AdminBaseController |
|
|
->field('g.id as gid,u.*')
|
|
|
->where($map)
|
|
|
->join('user u','g.user_id=u.id')
|
|
|
->paginate('1');
|
|
|
->paginate('20');
|
|
|
$page = $list->render();
|
|
|
$this->assign('group', $group);
|
|
|
$this->assign('list', $list);
|
...
|
...
|
@@ -174,8 +174,15 @@ class GroupController extends AdminBaseController |
|
|
}
|
|
|
|
|
|
public function groupPeopleAdd(){
|
|
|
dump(input());
|
|
|
$this->success();
|
|
|
|
|
|
$user_id=explode(',',input('user_id'));
|
|
|
foreach ($user_id as $k=>$v){
|
|
|
$insert[$k]['user_id']=$v;
|
|
|
$insert[$k]['group_id']=input('group_id');
|
|
|
$insert[$k]['addtime']=time();
|
|
|
}
|
|
|
db('group_user')->insertAll($insert);
|
|
|
$this->success();
|
|
|
}
|
|
|
|
|
|
} |
|
|
\ No newline at end of file |
...
|
...
|
|