Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

订单结算 #38

Open
gudaoge opened this issue Nov 16, 2020 · 1 comment
Open

订单结算 #38

gudaoge opened this issue Nov 16, 2020 · 1 comment

Comments

@gudaoge
Copy link

gudaoge commented Nov 16, 2020

对订单优惠结算的部分有点疑惑,结算页与提交订单是两步,那么提交订单时算出的价格与结算页不一致的情况该如何处理?例如有一个满减活动刚好失效之类的,这种情况该如何比较优雅的解决呢?

@TIGERB
Copy link
Member

TIGERB commented Nov 17, 2020

  1. 提交订单的时候会再次校验是否一致
  2. 如果不一致 会返回具体哪个商品的活动已经失效、没库存之类的异常;前端拿到异常弹窗提醒,提示用户活动失效且是否删除此商品继续下单

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants