...
|
...
|
@@ -45,6 +45,11 @@ func RedirectInternalService(prefix string, svr internalService) web.FilterFunc |
|
|
if ok && loginToken.CompanyId > 0 && loginToken.OrgId > 0 {
|
|
|
req.Header("companyId", fmt.Sprintf("%v", loginToken.CompanyId))
|
|
|
req.Header("orgId", fmt.Sprintf("%v", loginToken.OrgId))
|
|
|
orgIdList := make([]string, 0)
|
|
|
for i := range loginToken.OrgIds {
|
|
|
orgIdList = append(orgIdList, fmt.Sprintf("%d", loginToken.OrgIds[i]))
|
|
|
}
|
|
|
req.Header("orgIds", fmt.Sprintf("%v", strings.Join(orgIdList, ",")))
|
|
|
}
|
|
|
|
|
|
req.Body(ctx.Input.RequestBody)
|
...
|
...
|
|