|
@@ -22,7 +22,7 @@ func GenerateUUID() string {
|
|
|
// CheckFile 检查文件扩展名
|
|
|
func CheckFile(fileName string) string {
|
|
|
|
|
|
- fileNames := []string{"json", "txt", "wav", "npy", "xlsx", "xls"}
|
|
|
+ fileNames := []string{"json", "txt", "wav", "npy", "xlsx", "xls", "sql"}
|
|
|
for _, temp := range fileNames {
|
|
|
if strings.HasSuffix(strings.ToLower(fileName), temp) {
|
|
|
return temp
|