mirror of
https://gitee.com/johng/gf
synced 2026-06-07 10:22:11 +08:00
修复在windows下文件参数中不同文件分隔符引起的热更新机制失效问题。
This commit is contained in:
@ -61,8 +61,8 @@ func (sp *SPath) Search(name string) string {
|
||||
if path == "" {
|
||||
sp.mu.RLock()
|
||||
for _, v := range sp.paths {
|
||||
path = v + gfile.Separator + name
|
||||
if gfile.Exists(path) {
|
||||
path = gfile.RealPath(v + gfile.Separator + name)
|
||||
if path != "" && gfile.Exists(path) {
|
||||
break
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user