兼容casbin2.24.0版本log

迁移脚本编译时不打包
This commit is contained in:
linwenxiang
2021-03-05 13:23:21 +08:00
parent 48f0cb46ec
commit 39dd1ee6f8
56 changed files with 320 additions and 454 deletions
+1 -1
View File
@@ -7,6 +7,6 @@ import (
)
func WithContextDb(c *gin.Context) {
c.Set("db", global.Cfg.GetDbByKey(c.Request.Host))
c.Set("db", global.Runtime.GetDbByKey(c.Request.Host))
c.Next()
}