diff --git a/chain_transfer/chain_transfer.go b/chain_transfer/chain_transfer.go index ecddba3..77c2023 100644 --- a/chain_transfer/chain_transfer.go +++ b/chain_transfer/chain_transfer.go @@ -99,7 +99,7 @@ func ChainTransfer(eg *xorm.Engine, args map[string]string) map[string]string { res["url"] = curls.NoOpenAppURL } if args["provider"] == md.PVD_TIKTOK { - res["url"] = "" + res["url"] = curls.H5Url if curls.Content != "" { res["word"] = curls.Content } diff --git a/md/url.go b/md/url.go index 560c3a2..056d2f0 100644 --- a/md/url.go +++ b/md/url.go @@ -31,4 +31,5 @@ type ConvertedUrls struct { Content string `json:"content"` PvdName string `json:"pvd_name"` NewPid string `json:"new_pid"` + H5Url string `json:"h5_url"` } diff --git a/tik_tok/svc_tik_tok_convert.go b/tik_tok/svc_tik_tok_convert.go index 7fd45f9..c9c78b2 100644 --- a/tik_tok/svc_tik_tok_convert.go +++ b/tik_tok/svc_tik_tok_convert.go @@ -24,7 +24,7 @@ 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"]} + 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" { 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() } 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["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"], QrcodeUrl: url["qr_code"], Content: content, + H5Url: url["share_link"], }, nil }