|
@@ -486,7 +486,8 @@ func (svr AuthService) getUserInfo(operator domain.Operator) (interface{}, error |
|
@@ -486,7 +486,8 @@ func (svr AuthService) getUserInfo(operator domain.Operator) (interface{}, error |
486
|
func (svr AuthService) getToken(loginToken domain.LoginToken) (map[string]interface{}, error) {
|
486
|
func (svr AuthService) getToken(loginToken domain.LoginToken) (map[string]interface{}, error) {
|
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())
|