This commit is contained in:
suyl
2021-07-15 17:54:21 +08:00
parent 4b10c9601f
commit 53bb8dafec

View File

@@ -62,7 +62,8 @@ func Login(c *gin.Context) {
err error
user = &UserParam{}
)
data, _ := ioutil.ReadAll(c.Copy().Request.Body)
reader, _ := c.Request.GetBody()
data, _ := ioutil.ReadAll(reader)
globals.SugarLogger.Debugf("Begin API :%s params: %v ip: %s", c.Request.URL, string(data), c.ClientIP())
if err = c.ShouldBind(&user); err != nil {
c.JSON(http.StatusOK, &CallBack{