作者 lyh

hx

@@ -223,7 +223,7 @@ class NewsLogic extends BaseLogic @@ -223,7 +223,7 @@ class NewsLogic extends BaseLogic
223 $pattern = '/<img\s+[^>]*src=["\']([^"\']+)["\']/i'; 223 $pattern = '/<img\s+[^>]*src=["\']([^"\']+)["\']/i';
224 $matches = []; 224 $matches = [];
225 preg_match_all($pattern, $text, $matches); 225 preg_match_all($pattern, $text, $matches);
226 - $text = $this->saveBase64Images($matches[1]); 226 + $text = $this->saveBase64Images($matches[1],$text);
227 if($this->user['project_id'] == 1618){ 227 if($this->user['project_id'] == 1618){
228 @file_put_contents(storage_path('logs/lyh_error.log'), var_export($text, true) . PHP_EOL, FILE_APPEND); 228 @file_put_contents(storage_path('logs/lyh_error.log'), var_export($text, true) . PHP_EOL, FILE_APPEND);
229 } 229 }