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

@@ -172,6 +172,15 @@ func (l *AlipayCallbackLogic) handleWhitelistOrderPayment(w http.ResponseWriter,
return nil
}
if whitelistOrder.Status == 2 {
syncPaidWhitelistOrderToTianyuan(
l.ctx,
l.svcCtx,
whitelistOrder,
buildAgentPaidWhitelistSyncRemark(orderNo),
)
}
// 6. 更新订单和白名单订单 + 创建白名单记录并删除报告数据
err = l.svcCtx.WhitelistOrderModel.Trans(l.ctx, func(ctx context.Context, session sqlx.Session) error {
// 6.1 更新订单状态