diff --git a/internal/biz/order.go b/internal/biz/order.go index 09154f0..b1bd4ed 100644 --- a/internal/biz/order.go +++ b/internal/biz/order.go @@ -55,11 +55,6 @@ func (v *VoucherBiz) order(ctx context.Context, req *bo.OrderCreateReqBo, produc return nil, err } - // 注册通知标签 order.MerchantNo 批次创建商户, order.BatchNo 商品批次号 - //if err = v.registerNotifyTag(ctx, order.MerchantNo, order.BatchNo); err != nil { - // return nil, err - //} - // 真实发放 voucherNo, err := v.WechatCpnRepo.Order(ctx, order) if err != nil { @@ -111,6 +106,7 @@ func (v *VoucherBiz) create(ctx context.Context, req *bo.OrderCreateReqBo, produ return v.OrderRepo.Create(ctx, o) } +// RegisterTag 注册通知标签 stock.MchId 批次创建商户, stock.BatchNo 商品批次号 func (this *VoucherBiz) RegisterTag(ctx context.Context, productNo string) error { stock, err := this.ProductRepo.GetByProductNo(ctx, productNo) @@ -118,7 +114,6 @@ func (this *VoucherBiz) RegisterTag(ctx context.Context, productNo string) error return err } - // order.MerchantNo, order.BatchNo return this.registerNotifyTag(ctx, stock.MchId, stock.BatchNo) }