作者 lyh

hx

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