|
@@ -26,6 +26,7 @@ class Index extends Api
|
|
$banner = list_domain_image($banner, ['image','video_file']);
|
|
$banner = list_domain_image($banner, ['image','video_file']);
|
|
if(!empty($banner)){
|
|
if(!empty($banner)){
|
|
foreach($banner as $key => $val){
|
|
foreach($banner as $key => $val){
|
|
|
|
+ $banner[$key]['thumb_image'] = '';
|
|
if(!empty($val['video_file'])){
|
|
if(!empty($val['video_file'])){
|
|
$banner[$key]['thumb_image'] = $val['video_file'].'?x-oss-process=video/snapshot,t_100,f_png,m_fast';
|
|
$banner[$key]['thumb_image'] = $val['video_file'].'?x-oss-process=video/snapshot,t_100,f_png,m_fast';
|
|
}
|
|
}
|