From 67e4581f118b399856091028d49e416c2536315b Mon Sep 17 00:00:00 2001 From: Max Date: Thu, 17 Nov 2022 10:02:50 +0800 Subject: [PATCH] [change] importer --- importer/importer.go | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/importer/importer.go b/importer/importer.go index 6f09f3c5..bd77157b 100644 --- a/importer/importer.go +++ b/importer/importer.go @@ -59,10 +59,11 @@ func Open(name string) from.Source { ext := strings.ToLower(strings.TrimPrefix(filepath.Ext(name), ".")) switch ext { case "xlsx": - fullpath := name - if !strings.HasPrefix(fullpath, "/") { - fullpath = filepath.Join(xfs.Stor.Root, name) - } + // fullpath := name + fullpath := filepath.Join(xfs.Stor.Root, name) + // if !strings.HasPrefix(fullpath, "/") { + // fullpath = filepath.Join(xfs.Stor.Root, name) + // } return xlsx.Open(fullpath) } exception.New("暂不支持: %s 文件导入", 400, ext).Throw()