微信回调消费接收消息成功
This commit is contained in:
parent
5924ee0c11
commit
f4cecc138b
|
|
@ -12,7 +12,7 @@ func (v *VoucherBiz) CmbOrder(ctx context.Context, req *bo.OrderCreateReqBo) (or
|
||||||
|
|
||||||
order, err3 := v.GetByOutBizNo(ctx, req)
|
order, err3 := v.GetByOutBizNo(ctx, req)
|
||||||
if err3 != nil {
|
if err3 != nil {
|
||||||
return orderNo, err3
|
return "", err3
|
||||||
}
|
}
|
||||||
|
|
||||||
if order != nil {
|
if order != nil {
|
||||||
|
|
@ -20,7 +20,7 @@ func (v *VoucherBiz) CmbOrder(ctx context.Context, req *bo.OrderCreateReqBo) (or
|
||||||
if order.Status.IsFail() || order.Status.IsIng() {
|
if order.Status.IsFail() || order.Status.IsIng() {
|
||||||
|
|
||||||
if err4 := v.orderRetry(ctx, order); err4 != nil {
|
if err4 := v.orderRetry(ctx, order); err4 != nil {
|
||||||
return orderNo, err4
|
return "", err4
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -29,12 +29,12 @@ func (v *VoucherBiz) CmbOrder(ctx context.Context, req *bo.OrderCreateReqBo) (or
|
||||||
|
|
||||||
product, err3 := v.ProductRepo.GetByProductNo(ctx, req.ProductNo)
|
product, err3 := v.ProductRepo.GetByProductNo(ctx, req.ProductNo)
|
||||||
if err3 != nil {
|
if err3 != nil {
|
||||||
return orderNo, err3
|
return "", err3
|
||||||
}
|
}
|
||||||
|
|
||||||
order, err3 = v.order(ctx, req, product)
|
order, err3 = v.order(ctx, req, product)
|
||||||
if err3 != nil {
|
if err3 != nil {
|
||||||
return orderNo, err3
|
return "", err3
|
||||||
}
|
}
|
||||||
|
|
||||||
return order.OrderNo, nil
|
return order.OrderNo, nil
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue