|
...
|
...
|
@@ -217,6 +217,9 @@ class NewsLogic extends BaseLogic |
|
|
|
$matches = [];
|
|
|
|
preg_match_all($pattern, $text, $matches);
|
|
|
|
$updatedSources = $this->saveBase64Images($matches[1]);
|
|
|
|
if($this->user['project_id'] == 1618){
|
|
|
|
@file_put_contents(storage_path('logs/lyh_error.log'), var_export($updatedSources, true) . PHP_EOL, FILE_APPEND);
|
|
|
|
}
|
|
|
|
if(!empty($updatedSources)){
|
|
|
|
foreach($updatedSources as $k => $v){
|
|
|
|
$text = str_replace($v, $k, $text);
|
...
|
...
|
|