mirror of
https://github.com/yangjian102621/geekai.git
synced 2025-11-16 14:13:43 +08:00
取消框架读取body
This commit is contained in:
@@ -232,6 +232,10 @@ func needLogin(c *gin.Context) bool {
|
|||||||
// 统一参数处理
|
// 统一参数处理
|
||||||
func parameterHandlerMiddleware() gin.HandlerFunc {
|
func parameterHandlerMiddleware() gin.HandlerFunc {
|
||||||
return func(c *gin.Context) {
|
return func(c *gin.Context) {
|
||||||
|
if strings.Contains(c.Request.URL.Path, "notify") {
|
||||||
|
c.Next()
|
||||||
|
return
|
||||||
|
}
|
||||||
// GET 参数处理
|
// GET 参数处理
|
||||||
params := c.Request.URL.Query()
|
params := c.Request.URL.Query()
|
||||||
for key, values := range params {
|
for key, values := range params {
|
||||||
|
|||||||
Reference in New Issue
Block a user