Pārlūkot izejas kodu

update

add_mode
DengBiao pirms 1 gada
vecāks
revīzija
1afa1273f0
1 mainītis faili ar 3 papildinājumiem un 1 dzēšanām
  1. +3
    -1
      app/customer/hdl/hdl_login.go

+ 3
- 1
app/customer/hdl/hdl_login.go Parādīt failu

@@ -206,6 +206,8 @@ func Register(c *gin.Context) {
}
} else {
user.UserId = req.UserId
user.OpenId = req.OpenId
user.UnionId = req.UnionId
if req.Nickname != "" {
user.Nickname = req.Nickname
}
@@ -213,7 +215,7 @@ func Register(c *gin.Context) {
user.Avatar = req.Avatar
}
user.UpdateAt = now.Format("2006-01-02 15:04:05")
updateAffected, err1 := userDb.UpdateUser(user, "user_id", "nickname", "avatar", "update_at")
updateAffected, err1 := userDb.UpdateUser(user, "user_id", "nickname", "avatar", "update_at", "union_id", "open_id")
if err1 != nil {
e.OutErr(c, e.ERR_DB_ORM, err1)
return


Notiek ielāde…
Atcelt
Saglabāt