fix productid

This commit is contained in:
lwl0608 2024-03-19 16:09:51 +08:00
parent fca64cbb67
commit d2e0a24bb3
1 changed files with 0 additions and 9 deletions

View File

@ -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)