Browse Source

拼多多

master
huangjiajun 5 months ago
parent
commit
4c293c1ef1
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      pdd_union/extend_url.go

+ 3
- 3
pdd_union/extend_url.go View File

@@ -185,13 +185,13 @@ func PromUrl(keyArr map[string]string, param map[string]interface{}) map[string]
tmp["short_open_url"] = v.MobileShortUrl
tmp["app_id"] = v.WeAppInfo.AppId
tmp["schema_url"] = v.SchemaUrl
if param["open_app"] == "" && param["link_type"] != "" {
if param["open_app"] == "" && param["link_type"] != "" && v.Url != "" {
tmp["url"] = v.Url
}
if param["open_app"] != "" {
if param["open_app"] != "" && v.MobileShortUrl != "" {
tmp["url"] = v.MobileShortUrl
}
if param["open_app"] != "" && param["link_type"] != "" {
if param["open_app"] != "" && param["link_type"] != "" && v.MobileUrl != "" {
tmp["url"] = v.MobileUrl
}
}


Loading…
Cancel
Save