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, }