作者 tangxvhui

调试

... ... @@ -23,7 +23,7 @@ func (service *AuthService) MobileLogin(param *command.MobileLoginCommand) (map[
// 统一用户中心登录
authCodeReply, err := factory.UCenterApi().AppAuthCode(param.Credentials, param.Cuid, param.Cid)
if err != nil || !authCodeReply.IsOk() {
return nil, application.ThrowError(application.INTERNAL_SERVER_ERROR, "统一用户中心认证:"+authCodeReply.Msg+err.Error())
return nil, application.ThrowError(application.INTERNAL_SERVER_ERROR, "【统一用户中心认证】:"+authCodeReply.Msg+err.Error())
}
// 用户权限校验
// 登录平台ID,28-绩效管理后台 29-员工绩效
... ... @@ -97,7 +97,7 @@ func (srv *AuthService) Authorize(param *command.AuthorizeCommand) (map[string]i
// 统一用户中心登录
authCodeReply, err := factory.UCenterApi().AppAuthCode(param.Credentials, param.Cuid, param.Cid)
if err != nil || !authCodeReply.IsOk() {
return nil, application.ThrowError(application.INTERNAL_SERVER_ERROR, "统一用户中心认证:"+authCodeReply.Msg+err.Error())
return nil, application.ThrowError(application.INTERNAL_SERVER_ERROR, "【统一用户中心认证】:"+authCodeReply.Msg+err.Error())
}
// 用户权限校验
// 登录平台ID, 29-员工绩效
... ...
... ... @@ -27,7 +27,7 @@ func (service *AuthService) Login(loginCommand *command.LoginCommand) (interface
//统一用户中心登录
authCodeReply, err := factory.UCenterApi().AuthCode(loginCommand.Code)
if err != nil || !authCodeReply.IsOk() {
return nil, application.ThrowError(application.INTERNAL_SERVER_ERROR, "统一用户中心认证失败"+authCodeReply.Msg+err.Error())
return nil, application.ThrowError(application.INTERNAL_SERVER_ERROR, "【统一用户中心认证失败】"+authCodeReply.Msg+err.Error())
}
//用户权限校验
userAuthReply, err := factory.BusinessAdminApi().GetUserAuth(authCodeReply.Data.MUid, loginCommand.PlatformId)
... ...