切换商户

This commit is contained in:
ziming 2025-10-14 13:43:18 +08:00
parent 23bd19bc99
commit 5a3fefdd19
1 changed files with 12 additions and 8 deletions

View File

@ -48,12 +48,12 @@ func SendCoupon() {
} }
req := cashcoupons.SendCouponRequest{ req := cashcoupons.SendCouponRequest{
OutRequestNo: core.String("LQ1948534036766040066"), OutRequestNo: core.String("FZQM1948534036766040066"), // {CouponId:129623470711}
// 微信为发券方商户分配的公众账号ID接口传入的所有appid应该为公众号的appid在mp.weixin.qq.com申请的不能为APP的appid在open.weixin.qq.com申请的 // 微信为发券方商户分配的公众账号ID接口传入的所有appid应该为公众号的appid在mp.weixin.qq.com申请的不能为APP的appid在open.weixin.qq.com申请的
Appid: core.String("wxd27e255810842ba8"), Appid: core.String("wxd27e255810842ba8"),
Openid: core.String("o3dEt5cA8jt3Kz5wNzAO6-3YQHsE"), Openid: core.String("o3dEt5cA8jt3Kz5wNzAO6-3YQHsE"),
StockId: core.String("20391098"), StockId: core.String("21104160"),
StockCreatorMchid: core.String("1652465541"), StockCreatorMchid: core.String("1715349578"),
} }
fmt.Printf("\nreq:%+v", req) fmt.Printf("\nreq:%+v", req)
@ -115,9 +115,13 @@ func QueryCoupon() {
// Openid: core.String(openId), // Openid: core.String(openId),
//} //}
appId := "wx5d3e839568f24b2b" //appId := "wx5d3e839568f24b2b"
openId := "ocuH-0Nymo4sJLRNabIBbg9H2XCo" //openId := "ocuH-0Nymo4sJLRNabIBbg9H2XCo"
couponId := "116076813524" //couponId := "116076813524"
appId := "wxd27e255810842ba8"
openId := "o3dEt5cA8jt3Kz5wNzAO6-3YQHsE"
couponId := "129623470711"
req := cashcoupons.QueryCouponRequest{ req := cashcoupons.QueryCouponRequest{
CouponId: core.String(couponId), CouponId: core.String(couponId),
@ -170,8 +174,8 @@ func QueryProduct() {
} }
req := cashcoupons.QueryStockRequest{ req := cashcoupons.QueryStockRequest{
StockId: core.String("20847510"), StockId: core.String("21104160"),
StockCreatorMchid: core.String("1652465541"), StockCreatorMchid: core.String("1715349578"),
} }
svc := cashcoupons.StockApiService{Client: client} svc := cashcoupons.StockApiService{Client: client}