多笔立减
This commit is contained in:
parent
2cef642b4d
commit
9e39917583
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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),
|
||||
|
|
|
|||
Loading…
Reference in New Issue