From 9dba2b1bcd94e8876b8363cc855a4b62c793c1ed Mon Sep 17 00:00:00 2001 From: huangjiajun <582604932@qq.com> Date: Tue, 20 Jun 2023 16:41:24 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- meituan_fenxiao/api.go | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/meituan_fenxiao/api.go b/meituan_fenxiao/api.go index a3cc5f8..536850c 100644 --- a/meituan_fenxiao/api.go +++ b/meituan_fenxiao/api.go @@ -58,9 +58,15 @@ func MeituanFenXiaoGetSign(param map[string]interface{}) string { str := "" info, ok := param["geo"].(map[string]interface{}) if ok { - param["cityId"] = info["cityId"] - param["lat"] = info["lat"] - param["lng"] = info["lng"] + if info["cityId"] != "" { + param["cityId"] = info["cityId"] + } + if info["lat"] != "" { + param["lat"] = info["lat"] + } + if info["lng"] != "" { + param["lng"] = info["lng"] + } } delete(param, "geo") keys := comm.KsortToStrInterface(param)