Commit af98a881 authored by 任国军's avatar 任国军

add distance filter

parent 6229da14
Pipeline #15070 passed with stage
in 41 seconds
...@@ -424,7 +424,7 @@ class InstitutionService extends Service { ...@@ -424,7 +424,7 @@ class InstitutionService extends Service {
for (const i in result) { for (const i in result) {
const tmp = lbs_array[i]; const tmp = lbs_array[i];
tmp.distance = result[i]; tmp.distance = result[i];
if (distance > 0 && tmp.distance < distance) { if (distance > 0 && tmp.distance <= distance) {
ret.push(tmp); ret.push(tmp);
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment