tongshanglei лет назад: 2
Родитель
Сommit
848a68b2ae
1 измененных файлов с 1 добавлено и 0 удалено
  1. 1 0
      catch/device/model/Station.php

+ 1 - 0
catch/device/model/Station.php

@@ -61,6 +61,7 @@ class Station extends Model
             ->catchSearch()
             // ->field('mac,name,latitude,longitude,online_time')
             ->append(['is_online_text','is_online'])
+            ->cache(120)
             ->select()
             ->each(function($item, $key)  {
                 $wgsLoc = \algorithm\Geometry::gcj02ToWgs84((float)$item['latitude'],(float)$item['longitude']);