...
|
...
|
@@ -176,13 +176,15 @@ class GroupController extends AdminBaseController |
|
|
public function groupPeopleAdd(){
|
|
|
|
|
|
$user_id=explode(',',input('user_id'));
|
|
|
dump($user_id);
|
|
|
foreach ($user_id as $k=>$v){
|
|
|
$insert[$k]['user_id']=$v;
|
|
|
$insert[$k]['group_id']=input('group_id');
|
|
|
$insert[$k]['addtime']=time();
|
|
|
}
|
|
|
dump($insert);
|
|
|
db('group_user')->insertAll($insert);
|
|
|
$this->success();
|
|
|
// $this->success();
|
|
|
}
|
|
|
|
|
|
} |
|
|
\ No newline at end of file |
...
|
...
|
|