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)