作者 lyh

gx

@@ -318,8 +318,12 @@ class VideoTask extends Command @@ -318,8 +318,12 @@ class VideoTask extends Command
318 } 318 }
319 } 319 }
320 } else { 320 } else {
321 -  
322 - $image = $dom->find('.section-banner-wrap-block',0)->find('img', 0); 321 + $image = $dom->find('.section-banner-wrap-block',0);
  322 + if($image != null){
  323 + $image = $image->find('img', 0);
  324 + }else{
  325 + $image = null;
  326 + }
323 } 327 }
324 if($image != null){ 328 if($image != null){
325 $bg = $image->src; 329 $bg = $image->src;