diff --git a/controllers/user_controller.go b/controllers/user_controller.go index 5b25b9a..74e93f6 100644 --- a/controllers/user_controller.go +++ b/controllers/user_controller.go @@ -62,8 +62,8 @@ func Login(c *gin.Context) { err error user = &UserParam{} ) - data, _ := ioutil.ReadAll(c.Request.Body) - globals.SugarLogger.Debugf("Begin API :%s params: %v ip: %s", c.Request.URL, string(data), c.ClientIP()) + //data, _ := ioutil.ReadAll(c.Request.Body) + globals.SugarLogger.Debugf("Begin API :%s params: %v ip: %s", c.Request.URL, c.Request.Form, c.ClientIP()) if err = c.Bind(&user); err != nil { c.JSON(http.StatusOK, &CallBack{ Code: model.ErrCodeNormal,