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),