Merge branch 'xjjdev'

This commit is contained in:
徐俊杰 2023-04-07 14:28:53 +08:00
commit d7baf112ac
2 changed files with 15 additions and 16 deletions

View File

@ -11,4 +11,4 @@ COPY ./conf/ /app/conf/
COPY ./conf/ ./conf/ COPY ./conf/ ./conf/
WORKDIR /app/main-client/bin WORKDIR /app/main-client/bin
CMD ["./mainServer"] CMD ["./mainServer"]

View File

@ -24,21 +24,20 @@ import (
) )
func RegisterUser(req *artistInfoUser.RegisterUserRequest) (rep *artistInfoUser.RegisterUserRespond, err error) { func RegisterUser(req *artistInfoUser.RegisterUserRequest) (rep *artistInfoUser.RegisterUserRespond, err error) {
var user = model.User{
// var user = model.User{ MgmtAccId: req.MgmtAccId,
// MgmtAccId: req.MgmtAccId, TelNum: req.TelNum,
// TelNum: req.TelNum, MgmtArtistId: req.MgmtArtistId,
// MgmtArtistId: req.MgmtArtistId, MgmtArtistUid: req.MgmtArtistUid,
// MgmtArtistUid: req.MgmtArtistUid, InviteCode: req.UserInviteCode,
// InviteCode: req.UserInviteCode, Account: req.Account,
// Account: req.Account, }
// } zap.L().Debug(fmt.Sprintf("RegisterUser--user: %+v", user))
// zap.L().Debug(fmt.Sprintf("RegisterUser--user: %+v", user)) if err = db.DB.Create(&user).Error; err != nil {
// if err = db.DB.Create(&user).Error; err != nil { zap.L().Error("register user err", zap.Error(err))
// zap.L().Error("register user err", zap.Error(err)) err = errors.New(m.ERROR_SELECT)
// err = errors.New(m.ERROR_SELECT) return nil, err
// return nil, err }
// }
return return
} }