...
|
...
|
@@ -101,7 +101,7 @@ func (service *AuthService) MobileLogin(param *command.MobileLoginCommand) (map[ |
|
|
}
|
|
|
// 用户权限校验
|
|
|
// 登录平台ID,28-绩效管理后台 29-员工绩效
|
|
|
userAuthReply, err := factory.BusinessAdminApi().GetUserAuth(authCodeReply.Data.MUid, constant.IdPlatformUser)
|
|
|
userAuthReply, err := factory.BusinessAdminApi().GetUserAuth(int64(param.Muid), constant.IdPlatformUser)
|
|
|
if err != nil {
|
|
|
return nil, application.ThrowError(application.INTERNAL_SERVER_ERROR, "用户鉴权失败")
|
|
|
}
|
...
|
...
|
@@ -113,7 +113,7 @@ func (service *AuthService) MobileLogin(param *command.MobileLoginCommand) (map[ |
|
|
"transactionContext": transactionContext,
|
|
|
})
|
|
|
company, err := companyRepository.FindOne(map[string]interface{}{
|
|
|
"id": authCodeReply.Data.CompanyId,
|
|
|
"id": param.Cid,
|
|
|
})
|
|
|
if err != nil {
|
|
|
return nil, application.ThrowError(application.INTERNAL_SERVER_ERROR, "获取公司数据失败")
|
...
|
...
|
@@ -122,7 +122,7 @@ func (service *AuthService) MobileLogin(param *command.MobileLoginCommand) (map[ |
|
|
"transactionContext": transactionContext,
|
|
|
})
|
|
|
user, err := userRepository.FindOne(map[string]interface{}{
|
|
|
"id": authCodeReply.Data.MUid,
|
|
|
"id": param.Muid,
|
|
|
"companyId": company.Id,
|
|
|
})
|
|
|
if err != nil {
|
...
|
...
|
|