chang code

This commit is contained in:
ziming 2025-05-23 13:55:48 +08:00
parent 07641871f2
commit 4fb8ddfc2d
1 changed files with 4 additions and 2 deletions

View File

@ -38,12 +38,14 @@ func (v *VoucherBiz) cmbOrder(ctx context.Context, request *v1.CmbRequest) (*bo.
return nil, err return nil, err
} }
product, err3 := v.ProductRepo.GetByProductNo(ctx, bizContent.ActivityId) ctx2 := context.Background()
product, err3 := v.ProductRepo.GetByProductNo(ctx2, bizContent.ActivityId)
if err3 != nil { if err3 != nil {
return nil, err return nil, err
} }
order, err := v.Order(ctx, product, bizContent) order, err := v.Order(ctx2, product, bizContent)
if err != nil { if err != nil {
return nil, err return nil, err
} }