fix: 修复订单状态机转换校验与结算确认目标状态

This commit is contained in:
zetaloop
2026-04-24 09:54:34 +08:00
parent e4fcc4e74e
commit 3b56910100
3 changed files with 32 additions and 4 deletions
@@ -28,7 +28,7 @@ func NewConfirmCloseOrderLogic(ctx context.Context, svcCtx *svc.ServiceContext)
}
func (l *ConfirmCloseOrderLogic) ConfirmCloseOrder(req *types.PathId) (resp *types.EmptyResp, err error) {
if err = transitionOrderStatus(l.ctx, l.svcCtx, req.Id, "completed", false, true, true, false); err != nil {
if err = transitionOrderStatus(l.ctx, l.svcCtx, req.Id, "pending_review", false, true, false, false); err != nil {
return nil, err
}