...
|
...
|
@@ -91,7 +91,6 @@ class Index extends Api |
|
|
->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]);
|
...
|
...
|
@@ -129,11 +128,6 @@ class Index extends Api |
|
|
->select();
|
|
|
foreach ($data as $k => $v) {
|
|
|
$data[$k]['images'] = cdnurl($v['images'], true);
|
|
|
if ($data[$k]['is_url'] == 1) {
|
|
|
$data[$k]['url'] = cdnurl($v['url'], true);
|
|
|
} elseif ($data[$k]['is_url'] == 0) {
|
|
|
$v['url'] = null;
|
|
|
}
|
|
|
}
|
|
|
$this->success('获取轮播图详情成功', $data);
|
|
|
}
|
...
|
...
|
|