From 9e39917583d840319e5528571e82ed0f79c31078 Mon Sep 17 00:00:00 2001 From: ziming Date: Mon, 11 Aug 2025 16:59:35 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=9A=E7=AC=94=E7=AB=8B=E5=87=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internal/data/wechatrepoimpl/bank_multi_activity.go | 4 ++-- internal/data/wechatrepoimpl/cpn.go | 3 +-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/internal/data/wechatrepoimpl/bank_multi_activity.go b/internal/data/wechatrepoimpl/bank_multi_activity.go index 648740e..2e0fc0c 100644 --- a/internal/data/wechatrepoimpl/bank_multi_activity.go +++ b/internal/data/wechatrepoimpl/bank_multi_activity.go @@ -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) { req := &marketing.SendReq{ - ActivityId: core.String(order.ActivityId), - StockId: core.String(order.BatchNo), OutRequestNo: core.String(order.OrderNo), Appid: core.String(order.AppID), + StockId: core.String(order.BatchNo), StockCreatorMchId: core.String(order.MerchantNo), + ActivityId: core.String(order.ActivityId), } t, err := w.wx.Get(w.bc.Wechat.MchID) diff --git a/internal/data/wechatrepoimpl/cpn.go b/internal/data/wechatrepoimpl/cpn.go index dd0cbdd..f40cbfa 100644 --- a/internal/data/wechatrepoimpl/cpn.go +++ b/internal/data/wechatrepoimpl/cpn.go @@ -69,8 +69,7 @@ func (c *CpnRepoImpl) bodyErr(_ context.Context, result *core.APIResult) error { func (c *CpnRepoImpl) Order(ctx context.Context, order *bo.OrderBo) (string, error) { req := cashcoupons.SendCouponRequest{ - OutRequestNo: core.String(order.OrderNo), - // 微信为发券方商户分配的公众账号ID,接口传入的所有appid应该为公众号的appid(在mp.weixin.qq.com申请的),不能为APP的appid(在open.weixin.qq.com申请的)。 + OutRequestNo: core.String(order.OrderNo), Appid: core.String(order.AppID), Openid: core.String(order.Account), StockId: core.String(order.BatchNo),