diff --git a/application/api/controller/Index.php b/application/api/controller/Index.php index 955e957..0893cda 100644 --- a/application/api/controller/Index.php +++ b/application/api/controller/Index.php @@ -32,6 +32,9 @@ class Index extends Api $model = new News(); $list = $model->where('status','normal')->column('image'); + foreach ($list as $key => &$value){ + $value = cdnurl($value,true); + } $this->success('banner',$list); }