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 {