微信券查询处理耗时
This commit is contained in:
parent
e440b477f4
commit
0df46d71ba
|
|
@ -39,10 +39,14 @@ func (s *VoucherService) Handle(ctx context.Context, batchNo string) error {
|
||||||
}
|
}
|
||||||
|
|
||||||
start := time.Now()
|
start := time.Now()
|
||||||
|
fmt.Printf("微信券查询处理开始:%s,batchNo:%s", start.String(), batchNo)
|
||||||
|
|
||||||
if err := s.VoucherBiz.WechatQuery(ctx, batchNo); err != nil {
|
if err := s.VoucherBiz.WechatQuery(ctx, batchNo); err != nil {
|
||||||
s.logHelper.Error(err)
|
s.logHelper.Error(err)
|
||||||
}
|
}
|
||||||
|
|
||||||
log.Warnf("微信券查询处理耗时:%s,batchNo:%s", time.Now().Sub(start).String(), batchNo)
|
log.Warnf("微信券查询处理耗时:%s,batchNo:%s", time.Now().Sub(start).String(), batchNo)
|
||||||
|
fmt.Printf("微信券查询处理耗时:%s,batchNo:%s", time.Now().Sub(start).String(), batchNo)
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue