This commit is contained in:
toom1996
2025-07-29 12:00:34 +08:00
parent 75e5e52245
commit dc6a8b3317

View File

@ -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', '');