浏览代码

Merge remote-tracking branch 'origin/dev' into dev

Vanessa 2 年之前
父节点
当前提交
e5885173fd
共有 1 个文件被更改,包括 5 次插入0 次删除
  1. 5 0
      kernel/model/import.go

+ 5 - 0
kernel/model/import.go

@@ -115,6 +115,11 @@ func ImportSY(zipPath, boxID, toPath string) (err error) {
 		return errors.New(Conf.Language(199))
 		return errors.New(Conf.Language(199))
 	}
 	}
 	unzipRootPath := unzipRootPaths[0]
 	unzipRootPath := unzipRootPaths[0]
+	name := filepath.Base(unzipRootPath)
+	if strings.HasPrefix(name, "data-20") && len("data-20230321175442") == len(name) {
+		return errors.New(Conf.Language(199))
+	}
+
 	luteEngine := util.NewLute()
 	luteEngine := util.NewLute()
 	blockIDs := map[string]string{}
 	blockIDs := map[string]string{}
 	trees := map[string]*parse.Tree{}
 	trees := map[string]*parse.Tree{}