作者 lyh

hx

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