|
@@ -75,7 +75,7 @@ class Product extends Model
|
|
}
|
|
}
|
|
public function getVideothumbAttr($value, $data) {
|
|
public function getVideothumbAttr($value, $data) {
|
|
$rs = '';
|
|
$rs = '';
|
|
- if($data['video_file']){
|
|
|
|
|
|
+ if(!empty($data['video_file'])){
|
|
$images_url = explode('.', $data['video_file']);
|
|
$images_url = explode('.', $data['video_file']);
|
|
unset($images_url[count($images_url) - 1]);
|
|
unset($images_url[count($images_url) - 1]);
|
|
$rs = join('.', $images_url) . '_0.jpg';
|
|
$rs = join('.', $images_url) . '_0.jpg';
|