We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 310686d + 9e8090e commit 0f97168Copy full SHA for 0f97168
1 file changed
api/v1/mall/mall_user.go
@@ -28,6 +28,12 @@ func (m *MallUserApi) UserRegister(c *gin.Context) {
28
29
func (m *MallUserApi) UserInfoUpdate(c *gin.Context) {
30
var req mallReq.UpdateUserInfoParam
31
+ err := c.ShouldBindJSON(&req)
32
+ if err != nil {
33
+ global.GVA_LOG.Error("参数错误", zap.Error(err))
34
+ response.FailWithMessage("参数错误"+err.Error(), c)
35
+ return
36
+ }
37
token := c.GetHeader("token")
38
if err := mallUserService.UpdateUserInfo(token, req); err != nil {
39
global.GVA_LOG.Error("更新用户信息失败", zap.Error(err))
0 commit comments