This commit is contained in:
苏尹岚
2020-12-10 10:04:05 +08:00
parent 0bb42973ba
commit 9e07b0b957

View File

@@ -433,7 +433,7 @@ func GetStationInfoList(db *DaoDB, stationName string, cityCode int, lat, lng fl
distanceFlag bool distanceFlag bool
sqlParams = []interface{}{} sqlParams = []interface{}{}
) )
if lng != 0 && lat != 0 && (sortType == 1 || sortType == -1) { if lng != 0 && lat != 0 {
distanceFlag = true distanceFlag = true
} }
sql := ` sql := `