mirror of
https://github.com/go-admin-team/go-admin.git
synced 2026-09-21 02:04:09 +00:00
format🥚 代码格式化
This commit is contained in:
@@ -39,7 +39,7 @@ func LoggerToFile() gin.HandlerFunc {
|
||||
}
|
||||
rb, _ := ioutil.ReadAll(bf)
|
||||
c.Request.Body = ioutil.NopCloser(bytes.NewBuffer(rb))
|
||||
body =string(rb)
|
||||
body = string(rb)
|
||||
}
|
||||
|
||||
c.Next()
|
||||
@@ -53,7 +53,6 @@ func LoggerToFile() gin.HandlerFunc {
|
||||
if c.Request.Method == http.MethodOptions {
|
||||
return
|
||||
}
|
||||
|
||||
|
||||
rt, bl := c.Get("result")
|
||||
var result = ""
|
||||
@@ -129,4 +128,4 @@ func SetDBOperLog(c *gin.Context, clientIP string, statusCode int, reqUri string
|
||||
log.Errorf("Append message error, %s", err.Error())
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user