kx time out 10s add log

This commit is contained in:
ziming 2025-05-22 17:42:08 +08:00
parent 0c7571cb7b
commit 22b0c4f6ef
1 changed files with 13 additions and 3 deletions

View File

@ -52,6 +52,19 @@ func (v *VoucherBiz) useLog(ctx context.Context, order *bo.OrderBo, req *bo.Wech
return nil
}
if req.PlainText.ConsumeInformation.ConsumeAmount > 0 {
if err := v.createUseLog(ctx, order, req); err != nil {
return err
}
}
_ = v.wxToBBUse(ctx, order, req)
return nil
}
func (v *VoucherBiz) createUseLog(ctx context.Context, order *bo.OrderBo, req *bo.WechatVoucherNotifyBo) error {
useTime, err2 := time.Parse(time.RFC3339, req.PlainText.ConsumeInformation.ConsumeTime)
if err2 != nil {
return err2
@ -74,9 +87,6 @@ func (v *VoucherBiz) useLog(ctx context.Context, order *bo.OrderBo, req *bo.Wech
return err
}
}
_ = v.wxToBBUse(ctx, order, req)
return nil
}