预警30
This commit is contained in:
parent
388ff8bac4
commit
db551ab887
|
|
@ -184,7 +184,8 @@ func (this *VoucherBiz) Calculate(ctx context.Context, product *bo.ProductBo, wx
|
||||||
|
|
||||||
func (this *VoucherBiz) WarningSend(ctx context.Context, product *bo.ProductBo, wxResp *do.WxResp) error {
|
func (this *VoucherBiz) WarningSend(ctx context.Context, product *bo.ProductBo, wxResp *do.WxResp) error {
|
||||||
|
|
||||||
if err := this.DingMixRepo.SendMessage(ctx, "券预算不足", formatAsCard(product, wxResp)); err != nil {
|
title := fmt.Sprintf("券预算预警通知:%s", product.BatchName)
|
||||||
|
if err := this.DingMixRepo.SendMessage(ctx, title, formatAsCard(product, wxResp)); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue