From d2838f5f508aec0322dea3fe5dca8d2cf55ae074 Mon Sep 17 00:00:00 2001 From: dengbiao Date: Tue, 17 Dec 2024 16:51:41 +0800 Subject: [PATCH] update --- app/mw/mw_limiter.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/mw/mw_limiter.go b/app/mw/mw_limiter.go index babd4a8..8dd62f9 100644 --- a/app/mw/mw_limiter.go +++ b/app/mw/mw_limiter.go @@ -33,6 +33,10 @@ func Limiter(c *gin.Context) { //body, _ := ioutil.ReadAll(c.Request.Body) // Write body back c.Request.Body = ioutil.NopCloser(bytes.NewBuffer(body)) + utils.FilePutContents("Limiter", utils.SerializeStr(map[string]interface{}{ + "uri": c.Request.URL, + "body": c.Request.Body, + })) //queryValue := utils.SerializeStr(c.Request.URL.Query()) //不建议开启,失去限流的意义 //TODO::分布式锁阻拦(保证原子性)