多笔立减金

This commit is contained in:
ziming 2025-12-11 14:34:30 +08:00
parent c0df2aa399
commit dd5380c47d
2 changed files with 4 additions and 4 deletions

View File

@ -52,7 +52,7 @@ func NewMultiBiz(
}
}
func (biz *MultiBiz) Notify(ctx context.Context, source string, req *bo.WechatVoucherNotifyBo) error {
func (biz *MultiBiz) Notify(ctx context.Context, ip, source string, req *bo.WechatVoucherNotifyBo) error {
cl := vo.MultiNotifyLockKey.BuildCache([]string{
source,
@ -65,12 +65,12 @@ func (biz *MultiBiz) Notify(ctx context.Context, source string, req *bo.WechatVo
order, err := biz.order(ctx, req)
if err != nil {
log.Errorf("[%s] multi notify error: %v,req:%+v", source, err, req)
log.Errorf("[%s-%s] multi notify error: %v,req:%+v", source, ip, err, req)
return err
}
if err = biz.Run(ctx, source, req, order); err != nil {
log.Errorf("[%s] multi notify error: %v,req:%+v", source, err, req)
log.Errorf("[%s-%s] multi notify error: %v,req:%+v", source, ip, err, req)
return err
}

View File

@ -37,5 +37,5 @@ func (srv *TripartiteService) QiXingNotify(ctx http.Context) error {
return fmt.Errorf("json unmarshal bodyBytes error: %v", err)
}
return srv.multiBiz.Notify(ctx, "qixing_"+req.PlainText.StockCreatorMchid, req)
return srv.multiBiz.Notify(ctx, ip, "qixing_"+req.PlainText.StockCreatorMchid, req)
}