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