diff --git a/pdd_union/extend_url.go b/pdd_union/extend_url.go index 07d2d07..5c1a04e 100644 --- a/pdd_union/extend_url.go +++ b/pdd_union/extend_url.go @@ -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 } }