|
@@ -487,6 +487,7 @@ func (svr AuthService) getToken(loginToken domain.LoginToken) (map[string]interf |
|
@@ -487,6 +487,7 @@ func (svr AuthService) getToken(loginToken domain.LoginToken) (map[string]interf |
487
|
creationUserGateway := allied_creation_user.NewHttplibAlliedCreationUser(domain.Operator{})
|
487
|
creationUserGateway := allied_creation_user.NewHttplibAlliedCreationUser(domain.Operator{})
|
488
|
userSearchResult, err := creationUserGateway.UserSearch(allied_creation_user.ReqUserSearch{
|
488
|
userSearchResult, err := creationUserGateway.UserSearch(allied_creation_user.ReqUserSearch{
|
489
|
Phone: loginToken.Account,
|
489
|
Phone: loginToken.Account,
|
|
|
490
|
+ UserType: domain.UserTypeEmployee,
|
490
|
})
|
491
|
})
|
491
|
if err != nil {
|
492
|
if err != nil {
|
492
|
return nil, application.ThrowError(application.BUSINESS_ERROR, "用户信息获取失败,"+err.Error())
|
493
|
return nil, application.ThrowError(application.BUSINESS_ERROR, "用户信息获取失败,"+err.Error())
|