|
@@ -49,7 +49,7 @@ func GetStore(eg *xorm.Engine, arg map[string]string) []map[string]string { |
|
|
if utils.StrToFloat64(arg["km"]) > 0 { |
|
|
if utils.StrToFloat64(arg["km"]) > 0 { |
|
|
where += " and " + str + "<=" + utils.Float64ToStr(utils.StrToFloat64(arg["km"])/1000) |
|
|
where += " and " + str + "<=" + utils.Float64ToStr(utils.StrToFloat64(arg["km"])/1000) |
|
|
} else { |
|
|
} else { |
|
|
if utils.StrToFloat64(arg["lat"]) == 0 { |
|
|
|
|
|
|
|
|
if utils.StrToFloat64(arg["lat"]) > 0 && arg["city_id"] == "" { |
|
|
where += " and " + str + "<=1000" |
|
|
where += " and " + str + "<=1000" |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|