正在显示
1 个修改的文件
包含
3 行增加
和
3 行删除
@@ -101,7 +101,7 @@ func (service *AuthService) MobileLogin(param *command.MobileLoginCommand) (map[ | @@ -101,7 +101,7 @@ func (service *AuthService) MobileLogin(param *command.MobileLoginCommand) (map[ | ||
101 | } | 101 | } |
102 | // 用户权限校验 | 102 | // 用户权限校验 |
103 | // 登录平台ID,28-绩效管理后台 29-员工绩效 | 103 | // 登录平台ID,28-绩效管理后台 29-员工绩效 |
104 | - userAuthReply, err := factory.BusinessAdminApi().GetUserAuth(authCodeReply.Data.MUid, constant.IdPlatformUser) | 104 | + userAuthReply, err := factory.BusinessAdminApi().GetUserAuth(int64(param.Muid), constant.IdPlatformUser) |
105 | if err != nil { | 105 | if err != nil { |
106 | return nil, application.ThrowError(application.INTERNAL_SERVER_ERROR, "用户鉴权失败") | 106 | return nil, application.ThrowError(application.INTERNAL_SERVER_ERROR, "用户鉴权失败") |
107 | } | 107 | } |
@@ -113,7 +113,7 @@ func (service *AuthService) MobileLogin(param *command.MobileLoginCommand) (map[ | @@ -113,7 +113,7 @@ func (service *AuthService) MobileLogin(param *command.MobileLoginCommand) (map[ | ||
113 | "transactionContext": transactionContext, | 113 | "transactionContext": transactionContext, |
114 | }) | 114 | }) |
115 | company, err := companyRepository.FindOne(map[string]interface{}{ | 115 | company, err := companyRepository.FindOne(map[string]interface{}{ |
116 | - "id": authCodeReply.Data.CompanyId, | 116 | + "id": param.Cid, |
117 | }) | 117 | }) |
118 | if err != nil { | 118 | if err != nil { |
119 | return nil, application.ThrowError(application.INTERNAL_SERVER_ERROR, "获取公司数据失败") | 119 | return nil, application.ThrowError(application.INTERNAL_SERVER_ERROR, "获取公司数据失败") |
@@ -122,7 +122,7 @@ func (service *AuthService) MobileLogin(param *command.MobileLoginCommand) (map[ | @@ -122,7 +122,7 @@ func (service *AuthService) MobileLogin(param *command.MobileLoginCommand) (map[ | ||
122 | "transactionContext": transactionContext, | 122 | "transactionContext": transactionContext, |
123 | }) | 123 | }) |
124 | user, err := userRepository.FindOne(map[string]interface{}{ | 124 | user, err := userRepository.FindOne(map[string]interface{}{ |
125 | - "id": authCodeReply.Data.MUid, | 125 | + "id": param.Muid, |
126 | "companyId": company.Id, | 126 | "companyId": company.Id, |
127 | }) | 127 | }) |
128 | if err != nil { | 128 | if err != nil { |
-
请 注册 或 登录 后发表评论