From f08eb62fe19cff6fc72dbfc72dae0519bce82ed7 Mon Sep 17 00:00:00 2001
From: liuxiaolong <liuxiaolong@aiotlink.com>
Date: 星期四, 30 七月 2020 10:40:04 +0800
Subject: [PATCH] test static rootPath

---
 routers/router.go |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/routers/router.go b/routers/router.go
index 4047f59..0a88743 100644
--- a/routers/router.go
+++ b/routers/router.go
@@ -45,7 +45,7 @@
 	//beego.Router("/basic/api/car/app/user", &controllers.UserController{})
 	rootPath := getAppRootPath()
 	fmt.Println("rootPath:", rootPath)
-	beego.SetStaticPath("/download", "/data3/workspace/liuxiaolong/car-service/download")
+	beego.SetStaticPath("/download", rootPath+"/download")
 	preApi := "/basic/api"
 	beego.Router(preApi+"/car/statistic", &controllers.CarController{}, "*:Statistic")
 	beego.Router(preApi+"/car/spaceNo", &controllers.CarController{}, "*:SpaceNo")

--
Gitblit v1.8.0