Giter VIP home page Giter VIP logo

Comments (5)

changmingxie avatar changmingxie commented on June 1, 2024 1

@momoangu 看错误提示,你需要配置TransactionRepository,可以参考使用指南里“设置TransactionRepository” https://github.com/changmingxie/tcc-transaction/wiki/%E4%BD%BF%E7%94%A8%E6%8C%87%E5%8D%97

from tcc-transaction.

momoangu avatar momoangu commented on June 1, 2024

@changmingxie 非常感谢!按照参考指南的配了,目前项目可以跑起来,但有点状况:问题现象跟#3
提到的一样,也是订单始终是PAYING状态,我按帖子里面的解决方案试了,无效,同样的confirm没调用;另外:当我把payer方的红包金额改为5的时候,按道理失败;账户不会变动;结果却是payer的红包账户金额变为15了。其他跟进测试中...

from tcc-transaction.

momoangu avatar momoangu commented on June 1, 2024

@changmingxie 目前遇到新问题了,请帮忙分析。类似order的例子在我的项目中 在支付方 资金账户余额足够但红包账户余额不足的情况下;红包账户调用了cancelMethod 而资金账户却没有调用cancelMethod; 跟踪了一下,发现是调用顺序不是按
t1: order try make payment called
t4:order confirm make payment called
capital项目:
t2:capital try record called
t5:capital confirm record called
redpacket项目:
t3:red packet try record called
t6:red packet confirm record called
这个模式来的(当然你这里没有列出支付异常的情况)

我这里有两个账户金额如上所述异常的情况下调用顺序是这样的:
capital try record called
capital confirm record called
red packet try record called
red packet cancel record called

如上 capital 没有到cancelMethod里面去; 请帮忙分析分析原因在哪?

from tcc-transaction.

changmingxie avatar changmingxie commented on June 1, 2024

@momoangu 如果进入confirm状态 是不会调用cancel方法的。 可以运行示例项目看看。

from tcc-transaction.

momoangu avatar momoangu commented on June 1, 2024

@changmingxie 谢谢!整个流程终于通过了; order照搬到我的项目中, 通过,挺好。接下来消化整理,再次感谢。

from tcc-transaction.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.