Commit 77c4b6d8 by xuzhenhao

调试

1 parent 04a20e1b
Showing with 3 additions and 1 deletions
...@@ -20,7 +20,9 @@ import ( ...@@ -20,7 +20,9 @@ import (
//登录接口 //登录接口
func UserLoginApi(c *gin.Context) { func UserLoginApi(c *gin.Context) {
log.Printf("%s", c.Request.Body) buf := make([]byte, 1024)
n, _ := c.Request.Body.Read(buf)
lgo.Println(string(buf[0:n]))
loginType := c.Request.FormValue("login_type") loginType := c.Request.FormValue("login_type")
loginName := c.Request.FormValue("login_name") loginName := c.Request.FormValue("login_name")
loginPassword := c.Request.FormValue("login_password") loginPassword := c.Request.FormValue("login_password")
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!