Skip to content

Commit

Permalink
fix: 用户注册
Browse files Browse the repository at this point in the history
  • Loading branch information
danmuking committed Apr 12, 2024
1 parent aee8a6d commit 7c5df16
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion service/user_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,11 @@ func Register(c *gin.Context) {
// 创建对象
err := u.WithContext(context.Background()).Omit(u.OpenID).Create(&user)
if err != nil {
resp.SuccessResponseWithMsg(c, "注册成功")
resp.ErrorResponse(c, "系统正忙请稍后再试~")
return
}
resp.SuccessResponseWithMsg(c, "注册成功")
return
}

// Login 用户登录
Expand Down

0 comments on commit 7c5df16

Please sign in to comment.