Kaynağa Gözat

首页接口

lizhen_gitee 10 ay önce
ebeveyn
işleme
48e25da9f5
1 değiştirilmiş dosya ile 1 ekleme ve 0 silme
  1. 1 0
      application/api/controller/Index.php

+ 1 - 0
application/api/controller/Index.php

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