合并分支 'akun' 到 'master'
Akun 查看合并请求 !169
正在显示
1 个修改的文件
包含
4 行增加
和
4 行删除
| @@ -418,8 +418,9 @@ class HtmlCollect extends Command | @@ -418,8 +418,9 @@ class HtmlCollect extends Command | ||
| 418 | } | 418 | } |
| 419 | } | 419 | } |
| 420 | } | 420 | } |
| 421 | - } elseif(substr($vs['url_complete'], -2, 2) == 'js') { | ||
| 422 | - | 421 | + } else { |
| 422 | + $html = str_replace($vs['url'], getImageUrl($vs['url_complete']), $html); | ||
| 423 | + if(substr($vs['url_complete'], -2, 2) == 'js'){ | ||
| 423 | $js_html = curl_c(getImageUrl($vs['url_complete']), false); | 424 | $js_html = curl_c(getImageUrl($vs['url_complete']), false); |
| 424 | preg_match_all("/[large|thumb]+URL:['\"]+(\s*[^>]+?)['\"]+,/i", $js_html, $result_js_source); | 425 | preg_match_all("/[large|thumb]+URL:['\"]+(\s*[^>]+?)['\"]+,/i", $js_html, $result_js_source); |
| 425 | $js_source = $result_js_source[1] ?? []; | 426 | $js_source = $result_js_source[1] ?? []; |
| @@ -449,8 +450,7 @@ class HtmlCollect extends Command | @@ -449,8 +450,7 @@ class HtmlCollect extends Command | ||
| 449 | 450 | ||
| 450 | CosService::uploadRemote($project_id, 'source', $vs['url_complete'], $vs['url_complete'], $js_html); | 451 | CosService::uploadRemote($project_id, 'source', $vs['url_complete'], $vs['url_complete'], $js_html); |
| 451 | } | 452 | } |
| 452 | - }else{ | ||
| 453 | - $html = str_replace($vs['url'], getImageUrl($vs['url_complete']), $html); | 453 | + } |
| 454 | } | 454 | } |
| 455 | } | 455 | } |
| 456 | 456 |
-
请 注册 或 登录 后发表评论