作者 lyh

hx

... ... @@ -188,7 +188,7 @@ class NewsLogic extends BaseLogic
$param['image'] = str_replace_url($param['image'] ?? '');
}
if(isset($this->param['text'])){
$this->param['text'] = $this->handleText($this->param['text']);
$param['text'] = $this->handleText($this->param['text']);
}
if(isset($this->param['id'])){
$param['operator_id'] = $this->user['id'];
... ... @@ -224,9 +224,6 @@ class NewsLogic extends BaseLogic
$matches = [];
preg_match_all($pattern, $text, $matches);
$text = $this->saveBase64Images($matches[1],$text);
if($this->user['project_id'] == 1618){
@file_put_contents(storage_path('logs/lyh_error.log'), var_export($text, true) . PHP_EOL, FILE_APPEND);
}
return $this->success($text);
}
... ...