aa
This commit is contained in:
@@ -62,8 +62,8 @@ func Login(c *gin.Context) {
|
|||||||
err error
|
err error
|
||||||
user = &UserParam{}
|
user = &UserParam{}
|
||||||
)
|
)
|
||||||
data, _ := ioutil.ReadAll(c.Request.Body)
|
//data, _ := ioutil.ReadAll(c.Request.Body)
|
||||||
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.Request.Form, c.ClientIP())
|
||||||
if err = c.Bind(&user); err != nil {
|
if err = c.Bind(&user); err != nil {
|
||||||
c.JSON(http.StatusOK, &CallBack{
|
c.JSON(http.StatusOK, &CallBack{
|
||||||
Code: model.ErrCodeNormal,
|
Code: model.ErrCodeNormal,
|
||||||
|
|||||||
Reference in New Issue
Block a user