fix productid
This commit is contained in:
parent
fca64cbb67
commit
d2e0a24bb3
|
@ -2713,15 +2713,6 @@ func (v *Vas) RefundCoinOrder(ctx *gin.Context, req *vasproto.RefundCoinOrderReq
|
||||||
return errs.ErrVasOrderNotExists
|
return errs.ErrVasOrderNotExists
|
||||||
}
|
}
|
||||||
|
|
||||||
// 获取商品
|
|
||||||
product, err := v.store.GetProductById(ctx, order.GetProductId())
|
|
||||||
if err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
if product == nil {
|
|
||||||
return errs.ErrVasProductNotExists
|
|
||||||
}
|
|
||||||
|
|
||||||
switch order.GetProductId() {
|
switch order.GetProductId() {
|
||||||
case dbstruct.ProductIdContactWechat:
|
case dbstruct.ProductIdContactWechat:
|
||||||
return v.refundContactWechat(ctx, order, req)
|
return v.refundContactWechat(ctx, order, req)
|
||||||
|
|
Loading…
Reference in New Issue