mirror of
https://github.com/casdoor/casdoor.git
synced 2025-07-03 12:30:19 +08:00
Remove tmpFiles folder usage
This commit is contained in:
@ -14,13 +14,9 @@
|
||||
|
||||
package xlsx
|
||||
|
||||
import (
|
||||
"github.com/casdoor/casdoor/util"
|
||||
"github.com/tealeg/xlsx"
|
||||
)
|
||||
import "github.com/tealeg/xlsx"
|
||||
|
||||
func ReadXlsxFile(fileId string) [][]string {
|
||||
path := util.GetUploadXlsxPath(fileId)
|
||||
func ReadXlsxFile(path string) [][]string {
|
||||
file, err := xlsx.OpenFile(path)
|
||||
if err != nil {
|
||||
panic(err)
|
||||
|
Reference in New Issue
Block a user