作者 lyh

hx

@@ -188,7 +188,7 @@ class NewsLogic extends BaseLogic @@ -188,7 +188,7 @@ class NewsLogic extends BaseLogic
188 $param['image'] = str_replace_url($param['image'] ?? ''); 188 $param['image'] = str_replace_url($param['image'] ?? '');
189 } 189 }
190 if(isset($this->param['text'])){ 190 if(isset($this->param['text'])){
191 - $this->param['text'] = $this->handleText($this->param['text']); 191 + $param['text'] = $this->handleText($this->param['text']);
192 } 192 }
193 if(isset($this->param['id'])){ 193 if(isset($this->param['id'])){
194 $param['operator_id'] = $this->user['id']; 194 $param['operator_id'] = $this->user['id'];
@@ -224,9 +224,6 @@ class NewsLogic extends BaseLogic @@ -224,9 +224,6 @@ class NewsLogic extends BaseLogic
224 $matches = []; 224 $matches = [];
225 preg_match_all($pattern, $text, $matches); 225 preg_match_all($pattern, $text, $matches);
226 $text = $this->saveBase64Images($matches[1],$text); 226 $text = $this->saveBase64Images($matches[1],$text);
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);  
229 - }  
230 return $this->success($text); 227 return $this->success($text);
231 } 228 }
232 229