From ca0e9ef1292bd3dc08439ec7b618f6a691a53fc6 Mon Sep 17 00:00:00 2001 From: huangjiajun <582604932@qq.com> Date: Wed, 26 Oct 2022 11:20:55 +0800 Subject: [PATCH] =?UTF-8?q?add=20reverse:for=20v1.1.10=20=E8=BE=93?= =?UTF-8?q?=E5=87=BA=E9=94=99=E8=AF=AF=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tik_tok/svc_tik_tok_convert.go | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/tik_tok/svc_tik_tok_convert.go b/tik_tok/svc_tik_tok_convert.go index fc08424..54cd946 100644 --- a/tik_tok/svc_tik_tok_convert.go +++ b/tik_tok/svc_tik_tok_convert.go @@ -22,12 +22,14 @@ func GoodsCreatePid(args map[string]string) map[string]string { func GoodsConvertUrl(args map[string]string) (map[string]string, string) { params := map[string]interface{}{"pid": args["pid"], "external_info": args["external_info"], "product_url": args["product_url"]} send, err := Send(args["appkey"], args["appSecret"], "buyin.kolProductShare", params, args["acctoken"]) - fmt.Println(send) var data = map[string]string{} if err != nil { + fmt.Println("抖音信息=====", send) return data, err.Error() } if gjson.Get(send, "code").Int() != 10000 { + fmt.Println("抖音信息=====", send) + return data, gjson.Get(send, "sub_msg").String() } data["deeplink"] = gjson.Get(send, "data.dy_deeplink").String() @@ -43,12 +45,15 @@ func ActConvertUrl(args map[string]string) (map[string]string, string) { } params := map[string]interface{}{"pid": args["pid"], "external_info": args["external_info"], "activity_id": args["activity_id"], "mix_activity_id": args["mix_activity_id"], "need_qr_code": need_qr_code} send, err := Send(args["appkey"], args["appSecret"], "buyin.activityShareConvert", params, args["acctoken"]) - fmt.Println(send) var data = map[string]string{} if err != nil { + fmt.Println("抖音信息=====", send) + return data, err.Error() } if gjson.Get(send, "code").Int() != 10000 { + fmt.Println("抖音信息=====", send) + return data, gjson.Get(send, "sub_msg").String() } data["deeplink"] = gjson.Get(send, "data.deep_link").String() @@ -82,12 +87,13 @@ func LiveConvertUrl(args map[string]string) (map[string]string, string) { params["product_id"] = args["product_id"] } send, err := Send(args["appkey"], args["appSecret"], "buyin.instituteLiveShare", params, args["acctoken"]) - fmt.Println(send) var data = map[string]string{} if err != nil { + fmt.Println("抖音信息=====", send) return data, err.Error() } if gjson.Get(send, "code").Int() != 10000 { + fmt.Println("抖音信息=====", send) return data, gjson.Get(send, "sub_msg").String() } data["deeplink"] = gjson.Get(send, "data.dy_deeplink").String()