$date=$model->paginate(10);
foreach($date as $vo=>$v){
$date[$vo]['carmine_mun']=Db::name('carmine')->where('carmine_pid',$v['product_id'])->count();
$date[$vo]['carmine_for']=Db::name('carmine')->where('carmine_pid',$v['product_id'])->where('carmine_site','1')->count();
}
如果出现报错Indirect modification of overloaded element of think\paginator\driver\Bootstrap has no effect
记得用模型 记得用模型 记得用模型