add qr code show

This commit is contained in:
2025-11-12 13:57:22 +08:00
parent 13bc241abb
commit 80dbed023a

View File

@@ -11,6 +11,7 @@
- 用户确认订单后进入下一步付款流程时先将购物车状态由临时status=0转换为持久化status=1并写入数据库
- 购物车写入数据库后,生成预订单,预订单的信息来自于购物车
- 预订单生成后调用工具create_wechat_pay创建微信支付订单并生成Native支付二维码
- 支付流程返回收到订单创建成功的字段时调用MPC tool self.screen.display_payment_qr_code工具生成二维码。调用了self.screen.display_payment_qr_code工具之后立马调用MCP tool http-server__query_wechat_order查询订单状态如果返回收到“支付成功”或“支付失败”的字段时调用MPC tool self.screen.payment_success工具退出二维码如果没有收到“支付成功”或“支付失败”的字段时继续调用MCP tool http-server__query_wechat_order工具直到获取字段。
[模糊匹配]
用户输入|匹配数据
光予尘、关羽尘 光予尘Light to Dust