diff --git a/internal/biz/cmb.go b/internal/biz/cmb.go index b6cb869..a452a05 100644 --- a/internal/biz/cmb.go +++ b/internal/biz/cmb.go @@ -20,7 +20,9 @@ func (v *VoucherBiz) CmbOrder(ctx context.Context, req *bo.OrderCreateReqBo) (or err = lock.NewMutex(v.rdb.Rdb, c.TTL).Lock(bizCtx, c.Key, func(bizCtx context.Context) error { + // 压测商品直接过 if req.ProductNo != "001" { + order, err := v.OrderRepo.GetByOutBizNo(bizCtx, vo.OrderTypeCmb, req.OutBizNo) if err != nil && !err2.IsDbNotFound(err) { @@ -46,10 +48,6 @@ func (v *VoucherBiz) CmbOrder(ctx context.Context, req *bo.OrderCreateReqBo) (or return err } - if !product.Channel.IsWeChat() { - return err2.ErrorCmbProductNotSupported("只支持微信") - } - order, err := v.order(bizCtx, req, product) if err != nil { return err