...
|
...
|
@@ -319,8 +319,13 @@ func (authService *AuthService) UserInfo(userInfoQuery *query.UserInfoQuery) (in |
|
|
transactionContext.RollbackTransaction()
|
|
|
}()
|
|
|
|
|
|
var userBase *domain.UserBase
|
|
|
userBaseRepository, _, _ := factory.FastPgUserBase(transactionContext, 0)
|
|
|
userBase, err := userBaseRepository.FindOne(map[string]interface{}{"account": userInfoQuery.Account})
|
|
|
if len(userInfoQuery.Account) > 0 {
|
|
|
userBase, err = userBaseRepository.FindOne(map[string]interface{}{"account": userInfoQuery.Account})
|
|
|
} else if userInfoQuery.UserBaseId > 0 {
|
|
|
userBase, err = userBaseRepository.FindOne(map[string]interface{}{"userBaseId": userInfoQuery.UserBaseId})
|
|
|
}
|
|
|
if err != nil {
|
|
|
return nil, application.ThrowError(application.BUSINESS_ERROR, err.Error())
|
|
|
}
|
...
|
...
|
|