public function detail(){$where=UtilService::getMore([['id',0],]);$info=NewsModel::where(['is_del'=>0,'is_show'=>1,'id'=>$where['id']])->find();if(!$info){throw new \think\exception\HttpException(404, '数据不存在');die;}$info=$info->toArray();$info['cat_name']=NewsCategory::where('id',$info['cat_id'])->value('title');$this->assign('info',$info);$pre=NewsModel::where(['is_del'=>0,'is_show'=>1])->field('id,title')->where('show_time','<',$info['show_time'])->order('show_time desc')->find();if($pre)$pre=$pre->toArray();