| xqd
@@ -369,13 +369,17 @@ class ProductController extends Controller
|
|
|
*/
|
|
|
public function collectList(Request $request){
|
|
|
$limit = $request->get('limit',10);
|
|
|
+ $go = $request->get('go',6);
|
|
|
$list = UserCollect::query()
|
|
|
->with('product:id,name,image')
|
|
|
+ ->whereHas('product',function ($query){
|
|
|
+ $query->where('id','>',0);
|
|
|
+ })
|
|
|
->where('user_id',$this->userId)
|
|
|
->where('is_arrange','=',0)
|
|
|
->select("id","product_id")
|
|
|
->paginate($limit);
|
|
|
- return $this->success($this->page($list));
|
|
|
+ return $this->success(pages($list,$go));
|
|
|
}
|
|
|
|
|
|
/**
|