From d094a105afa3046aa7cf6a4694f281b3869dad96 Mon Sep 17 00:00:00 2001 From: huangjiajun <582604932@qq.com> Date: Mon, 28 Oct 2024 15:14:05 +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 60900bf..b616045 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 utils.StrToFloat64(arg["lat"]) == 0 { + if utils.StrToFloat64(arg["lat"]) > 0 && arg["city_id"] == "" { where += " and " + str + "<=1000" } }