Procházet zdrojové kódy

fix:添加sql文件类型

zzf před 1 rokem
rodič
revize
c4fd60f6d5
2 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. binární
      AIT/VehicleClassification.exe
  2. 1 1
      AIT/common/utils.go

binární
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