Przeglądaj źródła

修改快递与仓库分布图的缓存时间

ANG YU 5 lat temu
rodzic
commit
87b5590746
1 zmienionych plików z 2 dodań i 2 usunięć
  1. 2 2
      app/Services/NewOrderCountingRecordService.php

+ 2 - 2
app/Services/NewOrderCountingRecordService.php

@@ -53,7 +53,7 @@ class NewOrderCountingRecordService
     public function logisticsCountingRecords($start, $end, $ownerIds)
     {
         $key = 'logisticsCountingRecords_' . $start . '_' . $end . '_' . json_encode($ownerIds);
-        return Cache::remember($key, config('cache.expirations.orderCountingRecord'), function () use ($start, $end, $ownerIds) {
+        return Cache::remember($key, config('cache.expirations.logisticsCountingRecords_'), function () use ($start, $end, $ownerIds) {
             $dataList = collect();
             $resultOrders = $this->get($start, $end, '日', $ownerIds);
             $resultOrders->groupBy('logistic_id')->each(function ($item) use (&$dataList) {
@@ -81,7 +81,7 @@ class NewOrderCountingRecordService
     public function warehouseCountingRecords($start, $end, $ownerIds)
     {
         $key = 'warehouseCountingRecords_' . $start . '_' . $end . '_' . json_encode($ownerIds);
-        return Cache::remember($key, config('cache.expirations.orderCountingRecord'), function () use ($start, $end, $ownerIds) {
+        return Cache::remember($key, config('cache.expirations.warehouseCountingRecords_'), function () use ($start, $end, $ownerIds) {
             $dataList = collect();
             $resultOrders = $this->get($start, $end, '日', $ownerIds);
             $resultOrders->groupBy('warehouse_id')->each(function ($item) use (&$dataList) {