feat:完善项目

This commit is contained in:
henry
2022-01-17 09:57:57 +08:00
parent 6d075dab4f
commit b50fdb0d44
30 changed files with 70 additions and 84 deletions

View File

@ -1,7 +1,6 @@
package router
import (
"SciencesServer/config"
"SciencesServer/serve/logger"
"context"
"net/http"
@ -96,19 +95,3 @@ func RecoveryHandler() gin.HandlerFunc {
c.Next()
}
}
// ContentAnalysisHandler 消息体解析
func ContentAnalysisHandler() gin.HandlerFunc {
return func(c *gin.Context) {
url := c.Request.URL
var data string
value, has := config.SystemConfig[url.String()]
if has {
data = value.(string)
}
c.Set(config.ContentForTenantID, data)
}
}