加上两处打印信息:

SAP Spartacus OccEndpointsService调用getBaseEndpoint的一些场景
SAP Spartacus OccEndpointsService调用getBaseEndpoint的一些场景

BaseEndpoint由三处信息组成:

SAP Spartacus OccEndpointsService调用getBaseEndpoint的一些场景

一些常见的使用场景:

user-details.effect.ts里获取id为current的用户明细

SAP Spartacus OccEndpointsService调用getBaseEndpoint的一些场景

user-token.interceptor.ts: HTTP请求的拦截器

SAP Spartacus OccEndpointsService调用getBaseEndpoint的一些场景

AnonymousConsentsInterceptor

SAP Spartacus OccEndpointsService调用getBaseEndpoint的一些场景

site-context.interceptor.ts

SAP Spartacus OccEndpointsService调用getBaseEndpoint的一些场景

用得最多的就是加载CMS page:

SAP Spartacus OccEndpointsService调用getBaseEndpoint的一些场景

languages.effect.ts

取site language:

SAP Spartacus OccEndpointsService调用getBaseEndpoint的一些场景

currencies.effect.ts

取site currency:

SAP Spartacus OccEndpointsService调用getBaseEndpoint的一些场景

cart.effect.ts

根据购物车id加载购物车数据:

SAP Spartacus OccEndpointsService调用getBaseEndpoint的一些场景

cms-component.connector.ts:

SAP Spartacus OccEndpointsService调用getBaseEndpoint的一些场景

由此可见,OccEndpointsService的直接和间接类的消费者,最多的就是effect和connector.

这个anonymousConsentTemplates被触发的次数非常非常多:
SAP Spartacus OccEndpointsService调用getBaseEndpoint的一些场景

要获取更多Jerry的原创文章,请关注公众号"汪子熙":
SAP Spartacus OccEndpointsService调用getBaseEndpoint的一些场景

相关文章:

  • 2021-06-08
  • 2021-04-14
  • 2022-01-06
  • 2021-11-19
  • 2022-12-23
  • 2021-05-24
  • 2021-04-27
  • 2021-05-12
猜你喜欢
  • 2021-06-21
  • 2022-12-23
  • 2021-09-26
  • 2021-08-06
  • 2021-05-19
  • 2021-11-23
  • 2021-12-26
相关资源
相似解决方案