@@ -8,6 +8,7 @@
.vscode/
vender/
data/log/
+data/gen_sql/
data/session/
composer.lock
gitpush.sh
@@ -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 #空跑
@@ -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) {
//上传的文件允许跨域请求