...
|
...
|
@@ -61,7 +61,7 @@ func (service UsersService) UserLoginBySecretKey(cmd command.LoginBySecretKeyCom |
|
|
AdminCompanyId: loginResp.Data.CompanyId,
|
|
|
})
|
|
|
if err != nil {
|
|
|
e := fmt.Sprintf("获取公司(id=%d)数据失败:%s", loginResp.Data.Muid, err.Error())
|
|
|
e := fmt.Sprintf("获取公司(admin_company_id=%d)数据失败:%s", loginResp.Data.CompanyId, err.Error())
|
|
|
return nil, lib.ThrowError(lib.INTERNAL_SERVER_ERROR, e)
|
|
|
}
|
|
|
if !companyData.EnableIsOk() {
|
...
|
...
|
@@ -73,8 +73,8 @@ func (service UsersService) UserLoginBySecretKey(cmd command.LoginBySecretKeyCom |
|
|
CompanyId: companyData.Id,
|
|
|
})
|
|
|
if err != nil {
|
|
|
e := fmt.Sprintf("获取用户(OpenId=%d;CompanyId=%d)数据失败:%s",
|
|
|
loginResp.Data.Id, companyData.Id, err.Error())
|
|
|
e := fmt.Sprintf("获取用户(id=%d;CompanyId=%d)数据失败:%s",
|
|
|
loginResp.Data.Muid, companyData.Id, err.Error())
|
|
|
return nil, lib.ThrowError(lib.INTERNAL_SERVER_ERROR, e)
|
|
|
}
|
|
|
//确认用户权限
|
...
|
...
|
|