微信券查询处理耗时

This commit is contained in:
ziming 2025-06-05 15:31:08 +08:00
parent e440b477f4
commit 0df46d71ba
1 changed files with 4 additions and 0 deletions

View File

@ -39,10 +39,14 @@ func (s *VoucherService) Handle(ctx context.Context, batchNo string) error {
}
start := time.Now()
fmt.Printf("微信券查询处理开始:%s,batchNo:%s", start.String(), batchNo)
if err := s.VoucherBiz.WechatQuery(ctx, batchNo); err != nil {
s.logHelper.Error(err)
}
log.Warnf("微信券查询处理耗时:%s,batchNo:%s", time.Now().Sub(start).String(), batchNo)
fmt.Printf("微信券查询处理耗时:%s,batchNo:%s", time.Now().Sub(start).String(), batchNo)
return nil
}