|
@@ -14,14 +14,14 @@ class Zhengcejiedu extends Api
|
|
|
|
|
|
public function lists(){
|
|
|
$list = Db::name('zhengcejiedu')->field('id,title,image,updatetime')->where('status',1)->order('weigh','desc')->select();
|
|
|
- $list = list_domain_image($list,['image']);
|
|
|
+ $list = list_domain_image($list,['image','audio_file','video_file']);
|
|
|
$this->success(1,$list);
|
|
|
}
|
|
|
|
|
|
public function detail(){
|
|
|
$id = input('id');
|
|
|
$info = Db::name('zhengcejiedu')->where('id',$id)->find();
|
|
|
- $info = info_domain_image($info,['image','audio_file','video_file','video_image']);
|
|
|
+ $info = info_domain_image($info,['image','audio_file','video_file']);
|
|
|
|
|
|
$this->success(1,$info);
|
|
|
}
|