作者 开飞机的舒克

后台优化

... ... @@ -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);
}
... ...
... ... @@ -4973,7 +4973,7 @@
</div>
<div class="col-md-6" align="right">
Generated on 2023-03-15 15:30:50 <a href="./" target="_blank">校园活动</a>
Generated on 2023-03-15 15:39:40 <a href="./" target="_blank">校园活动</a>
</div>
</div>
... ...