Compare commits

...

3 Commits

Author SHA1 Message Date
fuzhongyun 0eb11c1544 Merge pull request 'refactor: 移除订单创建时的优惠券批次时间校验逻辑' (#4) from fix/fzy/time into pro
Reviewed-on: #4
2026-09-23 18:13:25 +08:00
fuzhongyun 0fd16e66b7 refactor: 移除订单创建时的优惠券批次时间校验逻辑
该校验逻辑已迁移至其他模块处理,此处移除冗余的时间校验代码,简化业务逻辑
2026-09-23 18:12:14 +08:00
fuzhongyun 0f22ff2fdb Merge pull request 'fix: 启星中转商户不注册刚哥tag' (#3) from feature/fzy/creator-mchid into pro
Reviewed-on: #3
2026-09-22 18:17:40 +08:00
1 changed files with 0 additions and 17 deletions

View File

@ -3,10 +3,8 @@ package biz
import ( import (
"context" "context"
"fmt" "fmt"
"time"
err2 "voucher/api/err" err2 "voucher/api/err"
"voucher/internal/biz/bo" "voucher/internal/biz/bo"
"voucher/internal/biz/businesserr"
"voucher/internal/biz/vo" "voucher/internal/biz/vo"
) )
@ -34,21 +32,6 @@ func (this *VoucherBiz) CmbOrder(ctx context.Context, req *bo.OrderCreateReqBo)
return nil, product, err3 return nil, product, err3
} }
if product.StartTime == nil {
return nil, product, businesserr.BatchNotSetStartedError
}
if product.EndTime == nil {
return nil, product, businesserr.BatchSetEndedError
}
nowTime := time.Now()
if nowTime.Before(*product.StartTime) {
return nil, product, businesserr.BatchNotStartedError
}
if nowTime.After(*product.EndTime) {
return nil, product, businesserr.BatchEndedError
}
order, err3 = this.order(ctx, req, product) order, err3 = this.order(ctx, req, product)
if err3 != nil { if err3 != nil {
return nil, product, err3 return nil, product, err3