update
This commit is contained in:
@ -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', '');
|
||||
|
Reference in New Issue
Block a user