Skip to content

Commit

Permalink
fix: update user.
Browse files Browse the repository at this point in the history
  • Loading branch information
kuchaguangjie committed Aug 24, 2023
1 parent 310686d commit 561e4a7
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions api/v1/mall/mall_user.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,12 @@ func (m *MallUserApi) UserRegister(c *gin.Context) {

func (m *MallUserApi) UserInfoUpdate(c *gin.Context) {
var req mallReq.UpdateUserInfoParam
err := c.BindJSON(&req)
if err != nil {
global.GVA_LOG.Error("参数错误", zap.Error(err))
response.FailWithMessage("参数错误"+err.Error(), c)
return
}
token := c.GetHeader("token")
if err := mallUserService.UpdateUserInfo(token, req); err != nil {
global.GVA_LOG.Error("更新用户信息失败", zap.Error(err))
Expand Down

0 comments on commit 561e4a7

Please sign in to comment.