update
This commit is contained in:
@ -5,7 +5,7 @@ namespace App\Helpers;
|
|||||||
use function Hyperf\Support\env;
|
use function Hyperf\Support\env;
|
||||||
class ArticleHelper
|
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) {
|
if (!$savePath) {
|
||||||
$savePath = env('UPLOAD_ROOT', '');
|
$savePath = env('UPLOAD_ROOT', '');
|
||||||
|
Reference in New Issue
Block a user