From a6742e6d6ec2bf542411a5fc336c2556ebc3229d Mon Sep 17 00:00:00 2001 From: huangjiajun <582604932@qq.com> Date: Fri, 26 May 2023 13:48:50 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tik_tok/svc_tik_tok_convert.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tik_tok/svc_tik_tok_convert.go b/tik_tok/svc_tik_tok_convert.go index 39d0b75..88ba2de 100644 --- a/tik_tok/svc_tik_tok_convert.go +++ b/tik_tok/svc_tik_tok_convert.go @@ -21,7 +21,11 @@ func GoodsCreatePid(args map[string]string) map[string]string { return data } 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"]} + if args["need_qr_code"] == "1" { + params["need_qr_code"] = "true" + } send, err := Send(args["appkey"], args["appSecret"], "buyin.kolProductShare", params, args["acctoken"]) var data = map[string]string{} if err != nil {