From 84ecc37356dac919711c9a88e1f642126b850927 Mon Sep 17 00:00:00 2001 From: huangjiajun <582604932@qq.com> Date: Mon, 28 Oct 2024 15:13:18 +0800 Subject: [PATCH] 1 --- app/db/db_store.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/db/db_store.go b/app/db/db_store.go index 0dcbec6..60900bf 100644 --- a/app/db/db_store.go +++ b/app/db/db_store.go @@ -49,7 +49,7 @@ func GetStore(eg *xorm.Engine, arg map[string]string) []map[string]string { if utils.StrToFloat64(arg["km"]) > 0 { where += " and " + str + "<=" + utils.Float64ToStr(utils.StrToFloat64(arg["km"])/1000) } else { - if arg["city_id"] == "" || utils.StrToFloat64(arg["lat"]) == 0 { + if utils.StrToFloat64(arg["lat"]) == 0 { where += " and " + str + "<=1000" } }