多笔立减金
This commit is contained in:
parent
c0df2aa399
commit
dd5380c47d
|
|
@ -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{
|
cl := vo.MultiNotifyLockKey.BuildCache([]string{
|
||||||
source,
|
source,
|
||||||
|
|
@ -65,12 +65,12 @@ func (biz *MultiBiz) Notify(ctx context.Context, source string, req *bo.WechatVo
|
||||||
|
|
||||||
order, err := biz.order(ctx, req)
|
order, err := biz.order(ctx, req)
|
||||||
if err != nil {
|
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
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
if err = biz.Run(ctx, source, req, order); err != nil {
|
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
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -37,5 +37,5 @@ func (srv *TripartiteService) QiXingNotify(ctx http.Context) error {
|
||||||
return fmt.Errorf("json unmarshal bodyBytes error: %v", err)
|
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)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue