From 5dbd4762b4f8fbd127629b67438cb9eef0f04a9b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E5=AD=90=E9=93=AD?= Date: Sat, 8 Mar 2025 14:07:50 +0800 Subject: [PATCH] cmb --- internal/biz/cmb/consume.go | 2 +- internal/data/repoimpl/order.go | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/internal/biz/cmb/consume.go b/internal/biz/cmb/consume.go index 7928064..95c724d 100644 --- a/internal/biz/cmb/consume.go +++ b/internal/biz/cmb/consume.go @@ -17,7 +17,7 @@ import ( func (v *Cmb) OrderConsume(ctx context.Context, order *bo.OrderBo) (outRequestNo string, err error) { - if order.Status.IsWait() { + if !order.Status.IsWait() { return outRequestNo, fmt.Errorf("订单状态错误,%s", order.Status.GetText()) } diff --git a/internal/data/repoimpl/order.go b/internal/data/repoimpl/order.go index 58dfe35..efdca74 100644 --- a/internal/data/repoimpl/order.go +++ b/internal/data/repoimpl/order.go @@ -41,6 +41,7 @@ func (p *OrderRepoImpl) Create(ctx context.Context, req *bo.OrderBo) (*bo.OrderB AppID: req.AppID, MerchantNo: req.MerchantNo, Channel: req.Channel.GetValue(), + NotifyUrl: req.NotifyUrl, CreateTime: &now, UpdateTime: &now, }