This commit is contained in:
suyl
2021-07-15 18:02:38 +08:00
parent 53bb8dafec
commit 33885ed25e
2 changed files with 14 additions and 7 deletions

View File

@@ -62,9 +62,7 @@ func Login(c *gin.Context) {
err error
user = &UserParam{}
)
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())
globals.SugarLogger.Debugf("Begin API :%s params: %v ip: %s", c.Request.URL, "", c.ClientIP())
if err = c.ShouldBind(&user); err != nil {
c.JSON(http.StatusOK, &CallBack{
Code: model.ErrCodeNormal,