huangjiajun 1 month ago
parent
commit
7d4f89431c
1 changed files with 3 additions and 7 deletions
  1. +3
    -7
      pdd_union/extend_url.go

+ 3
- 7
pdd_union/extend_url.go View File

@@ -3,16 +3,12 @@ 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.cashgift.create
func CashgiftUrl(keyArr map[string]string, param map[string]interface{}) map[string]string {
send, _ := Send(keyArr, "pdd.ddk.cashgift.create", param)
tmp := map[string]string{
"cashgift_id": gjson.Get(send, "create_cashgift_response.cash_gift_id").String(),
}
return tmp
func CashgiftUrl(keyArr map[string]string, param map[string]interface{}) (string, error) {
send, err := Send(keyArr, "pdd.ddk.cashgift.create", param)
return send, err

}



Loading…
Cancel
Save