field('id,title,info,image,updatetime')->where('status',1)->order('weigh','desc')->select(); $list = list_domain_image($list,['image']); $this->success(1,$list); } public function detail(){ $id = input('id'); $info = Db::name('shequhuodong')->where('id',$id)->find(); $info = info_domain_image($info,['image','audio_file','video_file','video_image']); $this->success(1,$info); } }