if ($this->data['article']['meta_description'] != '') {
$this->data['seo']['meta_description'] = $this->data['article']['meta_description'];
}
$this->data['cate_id'] = $this->data['article']['cate_id'];
// $this->data['article']['create_date'] = date("Y-m-d", strtotime($this->data['article']['create_date']));
$game_list_count = Db::name('article')->where(['status'=>1, 'product_id' => ['like', '%"' . $id . '"%']])->count('*');
$this->data['article']['game_list'] = Db::name('article')->where(['status'=>1, 'product_id' => ['like', '%"' . $id . '"%']])->limit(intval($game_list_count/2)*2)->order(['sort'=>'asc', 'article_id'=>'desc'])->select();
}
$this->data['other'] = Db::name('article')->field('article_id,title,cate_id,status,sort,img,summary')->where('cate_id', $this->data['cate_id'])->where('status', '1')->where('article_id', '<>', $id)->order('sort', 'asc')->order('article_id', 'desc')->select();
return $this->fetch('detail', $this->data);
}
private function sortArr($arrays,$sort_key,$sort_order=SORT_ASC,$sort_type=SORT_NUMERIC ){
$key_arrays =array();
if(is_array($arrays)){
foreach ($arrays as $array){
if(is_array($array)){
$key_arrays[] = $array[$sort_key];