Преглед изворни кода

fix:添加sql文件类型

zzf пре 1 година
родитељ
комит
c4fd60f6d5
2 измењених фајлова са 1 додато и 1 уклоњено
  1. BIN
      AIT/VehicleClassification.exe
  2. 1 1
      AIT/common/utils.go

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