|
@@ -24,7 +24,7 @@ func GoodsCreatePid(args map[string]string) map[string]string { |
|
|
} |
|
|
} |
|
|
func GoodsConvertUrl(args map[string]string) (map[string]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"]} |
|
|
|
|
|
|
|
|
params := map[string]interface{}{"pid": args["pid"], "external_info": args["external_info"], "product_url": args["product_url"], "need_share_link": true} |
|
|
if args["need_qr_code"] == "1" { |
|
|
if args["need_qr_code"] == "1" { |
|
|
params["need_qr_code"] = "true" |
|
|
params["need_qr_code"] = "true" |
|
|
} |
|
|
} |
|
@@ -40,6 +40,7 @@ func GoodsConvertUrl(args map[string]string) (map[string]string, string) { |
|
|
return data, gjson.Get(send, "sub_msg").String() |
|
|
return data, gjson.Get(send, "sub_msg").String() |
|
|
} |
|
|
} |
|
|
data["deeplink"] = gjson.Get(send, "data.dy_deeplink").String() |
|
|
data["deeplink"] = gjson.Get(send, "data.dy_deeplink").String() |
|
|
|
|
|
data["share_link"] = gjson.Get(send, "data.share_link").String() |
|
|
data["content"] = php2go.Base64Encode(gjson.Get(send, "data.dy_password").String()) |
|
|
data["content"] = php2go.Base64Encode(gjson.Get(send, "data.dy_password").String()) |
|
|
data["qr_code"] = gjson.Get(send, "data.qr_code.url").String() |
|
|
data["qr_code"] = gjson.Get(send, "data.qr_code.url").String() |
|
|
|
|
|
|
|
@@ -176,5 +177,6 @@ func OwnTikTokUrl(tikTokBase *md.TikTokBase, tikTokArgs map[string]interface{}) |
|
|
ClickUrl: url["deeplink"], |
|
|
ClickUrl: url["deeplink"], |
|
|
QrcodeUrl: url["qr_code"], |
|
|
QrcodeUrl: url["qr_code"], |
|
|
Content: content, |
|
|
Content: content, |
|
|
|
|
|
H5Url: url["share_link"], |
|
|
}, nil |
|
|
}, nil |
|
|
} |
|
|
} |