Browse Source

更新

master
huangjiajun 1 year ago
parent
commit
873e38dc9b
3 changed files with 5 additions and 2 deletions
  1. +1
    -1
      chain_transfer/chain_transfer.go
  2. +1
    -0
      md/url.go
  3. +3
    -1
      tik_tok/svc_tik_tok_convert.go

+ 1
- 1
chain_transfer/chain_transfer.go View File

@@ -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
}


+ 1
- 0
md/url.go View File

@@ -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"`
}

+ 3
- 1
tik_tok/svc_tik_tok_convert.go View File

@@ -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
}

Loading…
Cancel
Save