fix: 上传文件路径转换
This commit is contained in:
parent
948082f4ce
commit
ac5e0957b9
@ -26,11 +26,9 @@ class LocalUpload extends Upload
|
||||
*/
|
||||
protected function addUrl($path): mixed
|
||||
{
|
||||
if (Str::of($path['path'])->contains('\\')) {
|
||||
$path['path'] = Str::of($path['path'])->replace('\\', '/');
|
||||
}
|
||||
$path['path'] = config('app.url') . '/'.
|
||||
|
||||
$path['path'] = config('app.url') . '/'. $path['path'];
|
||||
Str::of($path['path'])->replace('\\', '/')->toString();
|
||||
|
||||
return $path;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user