Kaynağa Gözat

视频缩略图

lizhen_gitee 10 ay önce
ebeveyn
işleme
b748a564a9

+ 1 - 0
addons/unishop/model/Config.php

@@ -50,6 +50,7 @@ class Config extends Model
      */
     public static function getImagesFullUrl($value = '')
     {
+        if(empty($value)) return $value;
         if (stripos($value, 'http') === 0 || $value === '' || stripos($value, 'data:image') === 0) {
             return $value;
         } else {

+ 1 - 1
addons/unishop/model/Product.php

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

+ 1 - 1
application/config.php

@@ -20,7 +20,7 @@ return [
     // 应用调试模式
     'app_debug'              => true,
     // 应用Trace
-    'app_trace'              => Env::get('app.trace', false),
+    'app_trace'              => false,
     // 应用模式状态
     'app_status'             => '',
     // 是否支持多模块