diff --git a/app/Helpers/ArticleHelper.php b/app/Helpers/ArticleHelper.php index 7ddad1d..10dd985 100644 --- a/app/Helpers/ArticleHelper.php +++ b/app/Helpers/ArticleHelper.php @@ -5,7 +5,7 @@ namespace App\Helpers; use function Hyperf\Support\env; class ArticleHelper { - public static function saveImagesFromArticle(string $html, string $savePath = '/www/wwwroot/uploads/', string $srcPrefix = '/uploads/') + public static function saveImagesFromArticle(string $html, string $savePath = '', string $srcPrefix = '/uploads/') { if (!$savePath) { $savePath = env('UPLOAD_ROOT', '');