作者 lyh

hx

@@ -239,6 +239,9 @@ class NewsLogic extends BaseLogic @@ -239,6 +239,9 @@ class NewsLogic extends BaseLogic
239 if (preg_match('/^data:image\/(png|jpg|jpeg|gif);base64,/', $src, $match)) { 239 if (preg_match('/^data:image\/(png|jpg|jpeg|gif);base64,/', $src, $match)) {
240 $imageType = $match[1]; // Image type (png, jpg, etc.) 240 $imageType = $match[1]; // Image type (png, jpg, etc.)
241 $imageUrl = $this->manager_uploads($src,$imageType); 241 $imageUrl = $this->manager_uploads($src,$imageType);
  242 + if($this->user['project_id'] == 1618){
  243 + @file_put_contents(storage_path('logs/lyh_error.log'), var_export($imageUrl, true) . PHP_EOL, FILE_APPEND);
  244 + }
242 $updatedSources[$imageUrl] = $src; 245 $updatedSources[$imageUrl] = $src;
243 } 246 }
244 } 247 }