切换导航条
此项目
正在载入...
登录
allied-creation
/
performance
·
提交
转到一个项目
GitLab
转到群组
项目
活动
文件
提交
管道
0
构建
0
图表
里程碑
问题
0
合并请求
0
成员
标记
维基
派生
网络
创建新的问题
下载为
邮件补丁
差异文件
浏览文件
作者
tangxvhui
2 years ago
提交
3b22f5df632eafc7f250f9e6a650904ab3e705ba
1 个父辈
82c0255f
修复手机端无法登录的问题
隐藏空白字符变更
内嵌
并排对比
正在显示
1 个修改的文件
包含
3 行增加
和
3 行删除
pkg/application/auth/service/auth.go
pkg/application/auth/service/auth.go
查看文件 @
3b22f5d
...
...
@@ -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
.
CompanyI
d
,
"id"
:
param
.
Ci
d
,
})
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
.
MU
id
,
"id"
:
param
.
Mu
id
,
"companyId"
:
company
.
Id
,
})
if
err
!=
nil
{
...
...
请
注册
或
登录
后发表评论