aa
This commit is contained in:
@@ -63,7 +63,7 @@ func Login(c *gin.Context) {
|
||||
user = &UserParam{}
|
||||
)
|
||||
globals.SugarLogger.Debugf("Begin API :%s params: %v ip: %s", c.Request.URL, "", c.ClientIP())
|
||||
if err = c.ShouldBind(&user); err != nil {
|
||||
if err = c.Bind(&user); err != nil {
|
||||
c.JSON(http.StatusOK, &CallBack{
|
||||
Code: model.ErrCodeNormal,
|
||||
Desc: err.Error(),
|
||||
|
||||
Reference in New Issue
Block a user