作者 yangfu

登录修改

@@ -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())
@@ -174,6 +174,7 @@ func (srv UserService) DepartmentsUsers(departmentsUsersQuery *query.Departments @@ -174,6 +174,7 @@ func (srv UserService) DepartmentsUsers(departmentsUsersQuery *query.Departments
174 //Limit: 999, 174 //Limit: 999,
175 CompanyId: departmentsUsersQuery.Operator.CompanyId, 175 CompanyId: departmentsUsersQuery.Operator.CompanyId,
176 OrganizationId: departmentsUsersQuery.Operator.OrgId, 176 OrganizationId: departmentsUsersQuery.Operator.OrgId,
  177 + UserType: domain.UserTypeEmployee, //TODO:是否要共创用户
177 }) 178 })
178 if err != nil { 179 if err != nil {
179 return nil, application.ThrowError(application.BUSINESS_ERROR, err.Error()) 180 return nil, application.ThrowError(application.BUSINESS_ERROR, err.Error())