pull/131/head
wenxu12345 3 years ago
parent 8e4f3b4f06
commit 166ec71a28

@ -37,7 +37,7 @@ func UserRegister(c *gin.Context) {
reply, err := client.UserRegister(context.Background(), req)
if err != nil || reply.CommonResp.ErrCode != 0 {
log.NewError("0", "UserRegister failed ", err.Error(), req.String())
log.NewError("0", "UserRegister failed ", err, reply.CommonResp.ErrCode)
c.JSON(http.StatusInternalServerError, gin.H{"errCode": 500, "errMsg": err.Error()})
return
}

Loading…
Cancel
Save