多笔立减

This commit is contained in:
ziming 2025-08-11 16:59:35 +08:00
parent 2cef642b4d
commit 9e39917583
2 changed files with 3 additions and 4 deletions

View File

@ -25,11 +25,11 @@ func NewBankMultiActivityImpl(bc *conf.Bootstrap, wx *data.Wx) wechatrepo.BankMu
func (w *BankMultiActivityImpl) Order(order *bo.OrderBo) (couponId string, err error) { func (w *BankMultiActivityImpl) Order(order *bo.OrderBo) (couponId string, err error) {
req := &marketing.SendReq{ req := &marketing.SendReq{
ActivityId: core.String(order.ActivityId),
StockId: core.String(order.BatchNo),
OutRequestNo: core.String(order.OrderNo), OutRequestNo: core.String(order.OrderNo),
Appid: core.String(order.AppID), Appid: core.String(order.AppID),
StockId: core.String(order.BatchNo),
StockCreatorMchId: core.String(order.MerchantNo), StockCreatorMchId: core.String(order.MerchantNo),
ActivityId: core.String(order.ActivityId),
} }
t, err := w.wx.Get(w.bc.Wechat.MchID) t, err := w.wx.Get(w.bc.Wechat.MchID)

View File

@ -70,7 +70,6 @@ func (c *CpnRepoImpl) Order(ctx context.Context, order *bo.OrderBo) (string, err
req := cashcoupons.SendCouponRequest{ req := cashcoupons.SendCouponRequest{
OutRequestNo: core.String(order.OrderNo), OutRequestNo: core.String(order.OrderNo),
// 微信为发券方商户分配的公众账号ID接口传入的所有appid应该为公众号的appid在mp.weixin.qq.com申请的不能为APP的appid在open.weixin.qq.com申请的
Appid: core.String(order.AppID), Appid: core.String(order.AppID),
Openid: core.String(order.Account), Openid: core.String(order.Account),
StockId: core.String(order.BatchNo), StockId: core.String(order.BatchNo),