|
@@ -27,10 +27,13 @@ class Video extends Api
|
|
$list = list_domain_image($list,['video_file']);
|
|
$list = list_domain_image($list,['video_file']);
|
|
|
|
|
|
if(!empty($list)){
|
|
if(!empty($list)){
|
|
- foreach($list as $key => $val){
|
|
|
|
|
|
+ foreach($list as $key => &$val){
|
|
if(!empty($val['video_file'])){
|
|
if(!empty($val['video_file'])){
|
|
- $list[$key]['thumb_image'] = $val['video_file'].'?x-oss-process=video/snapshot,t_100,f_png,m_fast';
|
|
|
|
|
|
+ $val['thumb_image'] = $val['video_file'].'?x-oss-process=video/snapshot,t_100,f_png,m_fast';
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ $val['createtime'] = date('Y-m-d H:i:s',$val['createtime']);
|
|
|
|
+
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
@@ -47,6 +50,8 @@ class Video extends Api
|
|
if(!empty($info['video_file'])){
|
|
if(!empty($info['video_file'])){
|
|
$info['thumb_image'] = $info['video_file'].'?x-oss-process=video/snapshot,t_100,f_png,m_fast';
|
|
$info['thumb_image'] = $info['video_file'].'?x-oss-process=video/snapshot,t_100,f_png,m_fast';
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ $info['createtime'] = date('Y-m-d H:i:s',$info['createtime']);
|
|
}
|
|
}
|
|
|
|
|
|
$this->success(1,$info);
|
|
$this->success(1,$info);
|