...
|
...
|
@@ -95,6 +95,10 @@ class Index extends Api |
|
|
$data = \db('banner')
|
|
|
->order('createtime DESC')
|
|
|
->select();
|
|
|
foreach ($data as $k => $v) {
|
|
|
$data[$k]['images'] = cdnurl($v['images'], true);
|
|
|
$data[$k]['url'] = cdnurl($v['url'], true);
|
|
|
}
|
|
|
if (!$data){
|
|
|
$this->error('当前还没有轮播图',['status'=>2]);
|
|
|
}
|
...
|
...
|
|