huangjiajun vor 1 Monat
Ursprung
Commit
4010dbf93b
1 geänderte Dateien mit 16 neuen und 5 gelöschten Zeilen
  1. +16
    -5
      pdd_union/extend_url.go

+ 16
- 5
pdd_union/extend_url.go Datei anzeigen

@@ -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


Laden…
Abbrechen
Speichern