huangjiajun 4 weeks ago
parent
commit
84ecc37356
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      app/db/db_store.go

+ 1
- 1
app/db/db_store.go View File

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


Loading…
Cancel
Save