正在显示
1 个修改的文件
包含
6 行增加
和
2 行删除
| @@ -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; |
-
请 注册 或 登录 后发表评论