Explorar o código

fix:添加sql文件类型

zzf hai 1 ano
pai
achega
c4fd60f6d5
Modificáronse 2 ficheiros con 1 adicións e 1 borrados
  1. BIN=BIN
      AIT/VehicleClassification.exe
  2. 1 1
      AIT/common/utils.go

BIN=BIN
AIT/VehicleClassification.exe


+ 1 - 1
AIT/common/utils.go

@@ -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