yxh il y a 4 ans
Parent
commit
646533852b
4 fichiers modifiés avec 2 ajouts et 4 suppressions
  1. 1 0
      .gitignore
  2. 1 1
      config/config.toml
  3. 0 0
      data/gfast-v2-os.sql
  4. 0 3
      router/router.go

+ 1 - 0
.gitignore

@@ -8,6 +8,7 @@
 .vscode/
 vender/
 data/log/
+data/gen_sql/
 data/session/
 composer.lock
 gitpush.sh

+ 1 - 1
config/config.toml

@@ -30,7 +30,7 @@
 
 # Database.
 [database]
-    link  = "mysql:root:123456@tcp(localhost:3306)/gfast-v2-open"
+    link  = "mysql:root:123456@tcp(localhost:3306)/gfast-v2-os"
     charset   = "utf8mb4" #数据库编码
     debug = true
     dryRun = false #空跑

+ 0 - 0
data/gfast-v2-open.sql → data/gfast-v2-os.sql


+ 0 - 3
router/router.go

@@ -11,11 +11,8 @@ import (
 
 func init() {
 	s := g.Server()
-
 	//跨域处理
 	s.Use(middleware.CORS)
-	// 添加URI与静态目录的映射
-	s.AddStaticPath("/static", g.Cfg().GetString("server.ServerRoot"))
 	s.Group("/", func(group *ghttp.RouterGroup) {
 
 		//上传的文件允许跨域请求