This commit is contained in:
2026-06-20 15:13:58 +08:00
parent 6c4029e645
commit 8ccd20f69e
24 changed files with 526 additions and 888 deletions

View File

@@ -217,6 +217,13 @@ func (l *PaymentLogic) Payment(req *types.PaymentReq) (resp *types.PaymentResp,
}
// 更新白名单订单状态为已支付并处理白名单记录
syncPaidWhitelistOrderToTianyuan(
context.Background(),
l.svcCtx,
whitelistOrder,
buildAgentPaidWhitelistSyncRemark(paymentTypeResp.outTradeNo),
)
err := l.svcCtx.WhitelistOrderModel.Trans(context.Background(), func(transCtx context.Context, session sqlx.Session) error {
// 更新白名单订单状态为已支付
whitelistOrder.Status = 2 // 已支付