$items=$this->model->where(array('good_id'=>$id))->order('weigh asc,id desc')->with(['option','goods'])->paginate(5,false, ['query' => array('ids' =>$id)]);

query为传参部分

标签: none