PHP分页添加参数

2022-05-22
2845

php

Tp5

PHP代码

$where2['query']['class_id'] = $class_id;
# 获取列表新闻
$data=$news_model->order('weigh','desc')->where('sort_id',$class_id)->where('status',1)->paginate(15,'',$where2);