![](https://img.laitimes.com/img/__Qf2AjLwojIjJCLyojI0JCLicmbw5CO5gDOjZzY2YGZygTZ1QWOkFmY0E2M5gjYiBjYhVWMw8CX5d2bs92Yl1iclB3bsVmdlR2LcNWaw9CXt92Yu4GZjlGbh5yYjV3Lc9CX6MHc0RHaiojIsJye.png)
override the ProductReviewService to dispatch a custom action to an effect they would create with the logic they need.
搜索 POST_PRODUCT_REVIEW, 看看接收方是谁。
答案是 『ProductReviewsEffect:接收了该 Action 之后,调用 productReviewsConnector,消费 OCC API 添加 post,待添加成功后,返回新的 Action 对象 ProductActions.PostProductReviewSuccess,其中包含了 ReviewResponse.