第三方api接口
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
674 B

  1. package jdSdk
  2. import "code.fnuoos.com/go_rely_warehouse/zyos_go_third_party_api.git/comm"
  3. func ConventUrl(r *RequestJD) ([]byte, error) {
  4. method := "jd.union.open.promotion.byunionid.get"
  5. args := map[string]interface{}{
  6. "materialId": r.MaterialId, //推广物料链接,建议链接使用微Q前缀,能较好适配微信手Q页面
  7. "unionId": r.UnionId, // 目标推客的联盟ID
  8. "positionId": r.PositionId, //推广位id
  9. "chainType": "3", //转链类型,1:长链, 2 :短链 ,3: 长链+短链,默认短链
  10. }
  11. if r.CouponUrl != "" {
  12. args["couponUrl"] = r.CouponUrl
  13. }
  14. return send(method, comm.Arg{"promotionCodeReq": args})
  15. }