$price_new=array(); if(!empty($price)){ foreach($price as $k=>$v){ $price_new[]=$v; } $level[$k1][‘price‘]=$price_new; }else{ $level[$k1][‘price‘]=$price; }
$whe_re_c="";
$whe_re_c[‘fid‘]=array(‘in‘, $ids_fz);
$res_re_car=M(‘car_sort‘)->where($whe_re_c)->order(‘sort desc, addtime desc‘)->select();
$res_re_car_cou=M(‘car_sort‘)->where($whe_re_c)->count();
$chexing=M(‘car‘)->field(‘id,title‘)->where(‘is_hot=1 and status=1‘)->order(‘sort desc,addtime desc‘)->limit(18-$res_re_car_cou)->select();
foreach($res_re_car as $k=>$v){
$whe="";
$whe[‘status‘]=1;
$cx=M(‘car‘)->where($whe)->find($v[‘bid‘]);
if(empty($cx)){
continue;
}
$chexing_new[]=$cx;
}
foreach($chexing as $k=>$v){
$chexing_new[]=$v;
}
$this->assign(‘chexing‘,$chexing_new);