Commit 393c3019 by xuzhenhao

调试

1 parent 591a23ff
...@@ -84,6 +84,7 @@ func UserRegisterApi(c *gin.Context) { ...@@ -84,6 +84,7 @@ func UserRegisterApi(c *gin.Context) {
Name: registerName, Name: registerName,
Password: registerPassword, Password: registerPassword,
} }
log.Println("%+v", r)
if registerType == "" || registerName == "" || registerPassword == "" { if registerType == "" || registerName == "" || registerPassword == "" {
log.Printf("%+v", r) log.Printf("%+v", r)
ReturnRespones(c, "104002", "参数错误") ReturnRespones(c, "104002", "参数错误")
......
...@@ -88,6 +88,7 @@ func CheckUserNameRepeat(userName string) (result interface{}, err error) { ...@@ -88,6 +88,7 @@ func CheckUserNameRepeat(userName string) (result interface{}, err error) {
if len(r) == 0 { if len(r) == 0 {
return nil, nil return nil, nil
} }
log.Println(userName)
err = errors.New("该名称已被使用") err = errors.New("该名称已被使用")
return "105001", err return "105001", err
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!