1
This commit is contained in:
parent
17f5975f30
commit
517ff46b35
@ -92,15 +92,17 @@ class GoodsController extends Controller
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$data['data'][$key]['video_arr'] = [];
|
||||||
if ($value['video_url'] != null) {
|
if ($value['video_url'] != null) {
|
||||||
$video_arr = json_decode($value['video_url'], true);
|
$video_arr = json_decode($value['video_url'], true);
|
||||||
if (is_array($video_arr)) {
|
$video_banner_urls = json_decode($value['video_banner_urls'], true);
|
||||||
foreach ($video_arr as $index => $item) {
|
|
||||||
// $item = SiteHelper::getFullUrl($item);
|
$video = [];
|
||||||
$video_arr[$index] = $item;
|
foreach ($video_arr as $key1 => $value1) {
|
||||||
}
|
$video[$key1]['img'] = $video_banner_urls[$key1] ?? '';
|
||||||
$data['data'][$key]['video_arr'] = $video_arr;
|
$video[$key1]['video_url'] = $value1 ?? '';
|
||||||
}
|
}
|
||||||
|
$data['data'][$key]['video_arr'] = $video;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return $this->responseHandler($data);
|
return $this->responseHandler($data);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user