|
@@ -98,7 +98,13 @@ class Index extends Api
|
|
|
->join('user user', 'user.id = prize.user_id')
|
|
|
->order($order)
|
|
|
->limit(20)
|
|
|
- ->select();
|
|
|
+ ->select()->each(function ($item) {
|
|
|
+ $images = explode(',', $item->good_images);
|
|
|
+ foreach ($images as &$v) {
|
|
|
+ $v = cdnurl($v, true);
|
|
|
+ }
|
|
|
+ $item->good_images = implode(',', $images);
|
|
|
+ });
|
|
|
|
|
|
$this->success('查询成功', $list);
|
|
|
|
|
@@ -504,12 +510,12 @@ class Index extends Api
|
|
|
foreach ($box_banner_images as &$v) {
|
|
|
$v = cdnurl($v, true);
|
|
|
}
|
|
|
- $item->box_banner_images = $box_banner_images;
|
|
|
+ $item->box_banner_images = implode(',', $box_banner_images);
|
|
|
$box_foot_images = explode(',', $item->box_foot_images);
|
|
|
foreach ($box_foot_images as &$v) {
|
|
|
$v = cdnurl($v, true);
|
|
|
}
|
|
|
- $item->box_foot_images = $box_foot_images;
|
|
|
+ $item->box_foot_images = implode(',', $box_foot_images);
|
|
|
});
|
|
|
|
|
|
$this->success('查询成功', $list);
|