From 4c293c1ef1cfbc0817f6a7a9109a6507aef821dd Mon Sep 17 00:00:00 2001 From: huangjiajun <582604932@qq.com> Date: Mon, 22 Jul 2024 14:25:43 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8B=BC=E5=A4=9A=E5=A4=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pdd_union/extend_url.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 } }