//批量删除学员信息
public function deleteMany() {
$id = input('post.'); //判断id是数组还是一个数值
if(is_array($id)){
foreach($id['data'] as $v){
$ids[] = $v['value'];
}
$where = 'id in('.implode(',',$ids).')';
}else{
$where = 'id='.$id;
}
$list=model("students")->where($where)->delete();
if($list==true) {
$this->success("成功删除{$list}条!");
}else{
$this->error('批量删除失败!');
}
}
//批量删除学员信息
public function deleteMany() {