正在显示
1 个修改的文件
包含
17 行增加
和
18 行删除
@@ -2,7 +2,6 @@ package domain_service | @@ -2,7 +2,6 @@ package domain_service | ||
2 | 2 | ||
3 | import ( | 3 | import ( |
4 | "github.com/tiptok/gocomm/xa/eda" | 4 | "github.com/tiptok/gocomm/xa/eda" |
5 | - "gitlab.fjmaimaimai.com/mmm-go/partner/pkg/constant" | ||
6 | "gitlab.fjmaimaimai.com/mmm-go/partner/pkg/domain" | 5 | "gitlab.fjmaimaimai.com/mmm-go/partner/pkg/domain" |
7 | "gitlab.fjmaimaimai.com/mmm-go/partner/pkg/infrastructure/dao" | 6 | "gitlab.fjmaimaimai.com/mmm-go/partner/pkg/infrastructure/dao" |
8 | "gitlab.fjmaimaimai.com/mmm-go/partner/pkg/infrastructure/pg/transaction" | 7 | "gitlab.fjmaimaimai.com/mmm-go/partner/pkg/infrastructure/pg/transaction" |
@@ -153,8 +152,8 @@ func (svr *PgLoginService) ManagerStaticInfo() (interface{}, error) { | @@ -153,8 +152,8 @@ func (svr *PgLoginService) ManagerStaticInfo() (interface{}, error) { | ||
153 | return response, nil | 152 | return response, nil |
154 | } | 153 | } |
155 | var ( | 154 | var ( |
156 | - companyList []*domain.Company | ||
157 | - adminApiGateway = http_gateway.NewHttplibBusinessAdminApiServiceGateway() | 155 | + companyList []*domain.Company |
156 | + //adminApiGateway = http_gateway.NewHttplibBusinessAdminApiServiceGateway() | ||
158 | ) | 157 | ) |
159 | doGetCompanyIds := func() []int64 { | 158 | doGetCompanyIds := func() []int64 { |
160 | var companies []int64 | 159 | var companies []int64 |
@@ -169,21 +168,21 @@ func (svr *PgLoginService) ManagerStaticInfo() (interface{}, error) { | @@ -169,21 +168,21 @@ func (svr *PgLoginService) ManagerStaticInfo() (interface{}, error) { | ||
169 | c := companyList[i] | 168 | c := companyList[i] |
170 | 169 | ||
171 | //通过企业平台 校验模块权限 | 170 | //通过企业平台 校验模块权限 |
172 | - var user *domain.Users | ||
173 | - for j := range svr.Users { | ||
174 | - if svr.Users[j].CompanyId == c.Id { | ||
175 | - user = svr.Users[j] | ||
176 | - break | ||
177 | - } | ||
178 | - } | ||
179 | - if user != nil { | ||
180 | - if code, e := adminApiGateway.UserAuth(user.Id, constant.BUSINESS_ADMIN_PLATFORM_ID); e != nil || code != 0 { | ||
181 | - log.Debug("【检查权限】", svr.Phone, "【公司】", c.Id, user.Id, code, e.Error()) | ||
182 | - continue | ||
183 | - } else { | ||
184 | - log.Debug("【检查权限】", svr.Phone, "【公司】", c.Id, user.Id, code, e) | ||
185 | - } | ||
186 | - } | 171 | + //var user *domain.Users |
172 | + //for j := range svr.Users { | ||
173 | + // if svr.Users[j].CompanyId == c.Id { | ||
174 | + // user = svr.Users[j] | ||
175 | + // break | ||
176 | + // } | ||
177 | + //} | ||
178 | + //if user != nil { | ||
179 | + // if code, e := adminApiGateway.UserAuth(user.Id, constant.BUSINESS_ADMIN_PLATFORM_ID); e != nil || code != 0 { | ||
180 | + // log.Debug("【检查权限】", svr.Phone, "【公司】", c.Id, user.Id, code, e.Error()) | ||
181 | + // continue | ||
182 | + // } else { | ||
183 | + // log.Debug("【检查权限】", svr.Phone, "【公司】", c.Id, user.Id, code, e) | ||
184 | + // } | ||
185 | + //} | ||
187 | item := newCompanyBase(c) | 186 | item := newCompanyBase(c) |
188 | companys = append(companys, item) | 187 | companys = append(companys, item) |
189 | } | 188 | } |
-
请 注册 或 登录 后发表评论