From 7d4f89431c014812395632cebfb94d988a65801c Mon Sep 17 00:00:00 2001 From: huangjiajun <582604932@qq.com> Date: Tue, 19 Nov 2024 16:29:02 +0800 Subject: [PATCH] 1 --- pdd_union/extend_url.go | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/pdd_union/extend_url.go b/pdd_union/extend_url.go index fe0fbd0..655e0cc 100644 --- a/pdd_union/extend_url.go +++ b/pdd_union/extend_url.go @@ -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 }