huangjiajun 1 week ago
parent
commit
d094a105af
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 utils.StrToFloat64(arg["lat"]) == 0 {
if utils.StrToFloat64(arg["lat"]) > 0 && arg["city_id"] == "" {
where += " and " + str + "<=1000"
}
}


Loading…
Cancel
Save