This commit is contained in:
wucongxing8150 2024-06-13 13:31:14 +08:00
parent 672661c708
commit 7a367d329e

View File

@ -753,15 +753,15 @@ func (r *CouponService) GrantSystemCoupon(couponId, adminUserId int64, req reque
tx.Rollback()
return false, err
}
go func() {
// 发送通知
res, _ := PatientDistributeCoupon(coupon.CouponName, user.UserId)
if !res {
utils.LogJsonErr("CouponService-GrantSystemCoupon", "优惠卷通知发送失败")
}
}()
}
go func() {
// 发送通知
res, _ := PatientDistributeCoupon(coupon.CouponName, user.UserId)
if !res {
utils.LogJsonErr("CouponService-GrantSystemCoupon", "优惠卷通知发送失败")
}
}()
}
// 添加优惠卷发放记录表