Browse Source

市场排序优化

master
Lemon 5 years ago
parent
commit
7dda3fbda8
  1. 5
      app/Service/v3/Implementations/LocationService.php

5
app/Service/v3/Implementations/LocationService.php

@ -84,8 +84,9 @@ class LocationService implements LocationServiceInterface
}
}
$res = collect($res->toArray())->sortBy(function ($res, $key) {
return $res['distance_num'];
$res = collect($res->toArray())->map(function ($res, $key) {
$markets = collect($res)->sortBy('distance_num');
return $markets;
});
return $res;

Loading…
Cancel
Save