为数据库dsn增加时区
This commit is contained in:
parent
943bce15cd
commit
917b61de02
@ -170,7 +170,6 @@ func (a *ArtistInfoUserProvider) GetUserMsg(ctx context.Context, req *artistInfo
|
||||
func (a *ArtistInfoUserProvider) BindInviteInvitedAccount(ctx context.Context, in *artistInfoUser.BindInviteInvitedAccountRequest) (res *artistInfoUser.BindInviteInvitedAccountRespond, err error) {
|
||||
// 查询被邀请人是否存在
|
||||
var invitedUser model.User
|
||||
if in.InvitedUserId == 0 {
|
||||
if err = db.DB.Debug().Where("invited_code = ? OR id = ?", in.InvitedCode, in.InvitedUserId).First(&invitedUser).Error; err != nil {
|
||||
if err == gorm.ErrRecordNotFound {
|
||||
return nil, errors.New("被邀请人不存在")
|
||||
@ -178,7 +177,6 @@ func (a *ArtistInfoUserProvider) BindInviteInvitedAccount(ctx context.Context, i
|
||||
return nil, err
|
||||
}
|
||||
}
|
||||
}
|
||||
// 查询邀请人是否存在
|
||||
var inviteUser model.User
|
||||
if err = db.DB.Debug().Where("invited_code = ?", in.InviteCode).First(&inviteUser).Error; err != nil {
|
||||
|
Loading…
Reference in New Issue
Block a user