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" } }