mirror of
https://github.com/yangjian102621/geekai.git
synced 2025-09-27 05:36:39 +08:00
取消框架读取body
This commit is contained in:
parent
a90f00f7a4
commit
672c01a2e4
@ -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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user