|
|
@@ -34,10 +34,16 @@ class Index extends Api
|
|
|
$where['fid']=$list['id'];
|
|
|
$where['status']='normal';
|
|
|
$domain2 = $this->request->domain();
|
|
|
- $list['image']=$domain2.$list['image'];
|
|
|
+ if($list['image']){
|
|
|
+ $list['image']=$domain2.$list['image'];
|
|
|
+ }
|
|
|
+
|
|
|
$list['details']=Db::name('functional_del')->where($where)->select();
|
|
|
foreach ($list['details'] as $k=>$v){
|
|
|
- $list['details'][$k]['image']=$domain2.$v['image'];
|
|
|
+ if($v['image']){
|
|
|
+ $list['details'][$k]['image']=$domain2.$v['image'];
|
|
|
+ }
|
|
|
+
|
|
|
}
|
|
|
$this->success('请求成功',$list);
|
|
|
}
|