huangjiajun hace 1 mes
padre
commit
4010dbf93b
Se han modificado 1 ficheros con 16 adiciones y 5 borrados
  1. +16
    -5
      pdd_union/extend_url.go

+ 16
- 5
pdd_union/extend_url.go Ver fichero

@@ -3,9 +3,20 @@ package pdd_union
import (
"code.fnuoos.com/go_rely_warehouse/zyos_go_third_party_api.git/md/cps_pdd"
"encoding/json"
"github.com/tidwall/gjson"
)

//https://open.pinduoduo.com/application/document/api?id=pdd.ddk.oauth.goods.prom.url.generate
// https://open.pinduoduo.com/application/document/api?id=pdd.ddk.oauth.cashgift.create
func CashgiftUrl(keyArr map[string]string, param map[string]interface{}) map[string]string {
send, _ := Send(keyArr, "pdd.ddk.oauth.goods.prom.url.generate", param)
tmp := map[string]string{
"cashgift_id": gjson.Get(send, "create_cashgift_response.cash_gift_id").String(),
}
return tmp

}

// https://open.pinduoduo.com/application/document/api?id=pdd.ddk.oauth.goods.prom.url.generate
func ExtendUrl(keyArr map[string]string, param map[string]interface{}) map[string]string {
send, _ := Send(keyArr, "pdd.ddk.oauth.goods.prom.url.generate", param)
var res cps_pdd.ExtendUrl
@@ -42,7 +53,7 @@ func ExtendUrl(keyArr map[string]string, param map[string]interface{}) map[strin
return tmp
}

//https://open.pinduoduo.com/application/document/api?id=pdd.ddk.oauth.resource.url.gen
// https://open.pinduoduo.com/application/document/api?id=pdd.ddk.oauth.resource.url.gen
func MainThemeUrl(keyArr map[string]string, param map[string]interface{}) map[string]string {
send, _ := Send(keyArr, "pdd.ddk.oauth.resource.url.gen", param)
var res cps_pdd.MainThemeUrl
@@ -81,7 +92,7 @@ func MainThemeUrl(keyArr map[string]string, param map[string]interface{}) map[st
return tmp
}

//https://open.pinduoduo.com/application/document/api?id=pdd.ddk.oauth.goods.zs.unit.url.gen
// https://open.pinduoduo.com/application/document/api?id=pdd.ddk.oauth.goods.zs.unit.url.gen
func WnMainThemeUrl(keyArr map[string]string, param map[string]interface{}) map[string]string {
send, _ := Send(keyArr, "pdd.ddk.oauth.goods.zs.unit.url.gen", param)
var res cps_pdd.WnMainThemeUrl
@@ -120,7 +131,7 @@ func WnMainThemeUrl(keyArr map[string]string, param map[string]interface{}) map[
return tmp
}

//https://open.pinduoduo.com/application/document/api?id=pdd.ddk.oauth.rp.prom.url.generate
// https://open.pinduoduo.com/application/document/api?id=pdd.ddk.oauth.rp.prom.url.generate
func RpUrl(keyArr map[string]string, param map[string]interface{}) map[string]string {
send, _ := Send(keyArr, "pdd.ddk.oauth.rp.prom.url.generate", param)
var res cps_pdd.RpUrl
@@ -162,7 +173,7 @@ func RpUrl(keyArr map[string]string, param map[string]interface{}) map[string]st
return tmp
}

//https://open.pinduoduo.com/application/document/api?id=pdd.ddk.oauth.cms.prom.url.generate
// https://open.pinduoduo.com/application/document/api?id=pdd.ddk.oauth.cms.prom.url.generate
func PromUrl(keyArr map[string]string, param map[string]interface{}) map[string]string {
send, _ := Send(keyArr, "pdd.ddk.oauth.cms.prom.url.generate", param)
var res cps_pdd.PromUrl


Cargando…
Cancelar
Guardar