fix:修复上传文件时入库文件路径使用了错误的斜杠造成图片可能无法显示的问题

This commit is contained in:
妙码生花 2024-09-23 21:42:33 +08:00
parent 3783cd1d2f
commit a1e80c5386

View File

@ -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);
}
/**