laravel:闭包/闭合
// $where[] = ['id,'in',$ids];//这种无效
// $where[] = ['in'=>['problem_answers.id'=>$ids]];//这种无效
$where[] = [
function ($query) use ($ids) {
$query->whereIn('problem_answers.id', $ids);
},
];
