...
|
...
|
@@ -58,6 +58,8 @@ class ListController extends HomeBaseController |
|
|
|
|
|
$path = explode('-', $category['path']);
|
|
|
|
|
|
dump($category);die;
|
|
|
|
|
|
//产品介绍
|
|
|
if($path[1] == 12){
|
|
|
|
...
|
...
|
@@ -88,11 +90,19 @@ class ListController extends HomeBaseController |
|
|
}
|
|
|
}
|
|
|
|
|
|
$zuixin = Db::name('portal_post') -> where('id','in',$arr3) -> where('delete_time',0) -> order('create_time desc') -> limit(1) -> select();
|
|
|
$zzz = $zuixin[0];
|
|
|
if(count($path) == 4){
|
|
|
|
|
|
}else{
|
|
|
|
|
|
$zuixin = Db::name('portal_post') -> where('id','in',$arr3) -> where('delete_time',0) -> order('create_time desc') -> limit(1) -> select();
|
|
|
$zzz = $zuixin[0];
|
|
|
|
|
|
$zzz['post_content'] = cmf_replace_content_file_url(htmlspecialchars_decode($zzz['post_content']));
|
|
|
$this -> assign('zuixin',$zzz);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
$zzz['post_content'] = cmf_replace_content_file_url(htmlspecialchars_decode($zzz['post_content']));
|
|
|
$this -> assign('zuixin',$zzz);
|
|
|
}
|
|
|
|
|
|
//新闻分类
|
...
|
...
|
|