$posts_arr_all[$key]['thumbb']=$value['thumbb'];
$posts_arr_all[$key]['keywords']=$value['keywords'];
$posts_arr_all[$key]['styleshow']=$value['styleshow'];
$posts_arr_all[$key]['cateid']=$value['cateid'];
$posts_arr_all[$key]['isHttps']=$value['isHttps'];
$posts_arr_all[$key]['httpUrl']=$value['httpUrl'];
$posts_arr_all[$key]['target']="_blank";
}
$navspostall=$posts_arr_all;
return $this->fetch("productstwo",['page'=>$listPossall,"newsListall"=>$navspostall,"listCategory"=>$listCategory[0],"listCategorytwo"=>$listCategorytwo[0],"data"=>["id"=>isset($this->param['id'])?$this->param['id']:0]]);
}
$aid = $this->param['id'];
if($aid=10){
$listCategorytwo=Core::loadModel("Category",'','logic')->getCategory(["where"=>['id'=>$listCategorytwo[0]["parentid"]],"field"=>"id,url,title,parentid"]);
}
$listCategory=Core::loadModel("Category",'','logic')->getCategory(["where"=>['id'=>$this->param['id']],"field"=>"id,url,title,parentid"]);
$newsList=Core::loadModel("Posts",'','logic')->getTpfPosts(["where"=>['id'=>$this->param['newsid'],'isdelete'=>0],"field"=>"id,title,abstract,content,thumb,keywords,styleshow,thumbb"]);
foreach ($newsList as $key => $value) {