mirror of
https://gitee.com/wonderful-code/buildadmin
synced 2024-11-21 14:41:29 +00:00
fix:修复上传文件时入库文件路径使用了错误的斜杠造成图片可能无法显示的问题
This commit is contained in:
parent
3783cd1d2f
commit
a1e80c5386
@ -102,7 +102,7 @@ class Local extends Driver
|
||||
if (preg_match('/^http(s)?:\/\//', $saveName) || preg_match($regex, $saveName) || $domain === false) {
|
||||
return $saveName;
|
||||
}
|
||||
return $domain . $saveName;
|
||||
return str_replace('\\', '/', $domain . $saveName);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user