ziwen 1 жил өмнө
parent
commit
d3ca6b7bf7

+ 2 - 2
controllers/resource.go

@@ -33,8 +33,8 @@ func (this *ResourceController) ResourceUpload() {
 	}()
 
 
-	//uploadDir :=  "/home/code/python/meeting_probabilities/file"
-	uploadDir :=  "/Users/xi/Desktop/file"
+	uploadDir :=  "./static/"
+	//uploadDir :=  "/Users/xi/Desktop/file"
 	if e = os.MkdirAll(uploadDir, 766); e != nil {
 		br.Msg = "存储目录创建失败"
 		br.ErrMsg = "存储目录创建失败, Err:" + e.Error()