Ver Fonte

Merge branch 'yang_control_fix' into yang

# Conflicts:
#	app/Http/Controllers/TestController.php
ANG YU há 5 anos atrás
pai
commit
480e8e07de
1 ficheiros alterados com 2 adições e 0 exclusões
  1. 2 0
      app/Services/NewOrderCountingRecordService.php

+ 2 - 0
app/Services/NewOrderCountingRecordService.php

@@ -475,8 +475,10 @@ class NewOrderCountingRecordService
     private function getTtl($dateStr, $unit)
     private function getTtl($dateStr, $unit)
     {
     {
         if ($this->isNotCurrentDate($dateStr, $unit)) {
         if ($this->isNotCurrentDate($dateStr, $unit)) {
+            LogService::log('NewOrderCountingRecordService', '缓存设置为永久', $dateStr);
             $ttl = config('cache.expirations.forever');//非当前日期的缓存为永久
             $ttl = config('cache.expirations.forever');//非当前日期的缓存为永久
         } else {
         } else {
+            LogService::log('NewOrderCountingRecordService', '缓存设置为临时', $dateStr);
             $ttl = config('cache.expirations.orderCountingRecord');//当前日期缓存为1800s
             $ttl = config('cache.expirations.orderCountingRecord');//当前日期缓存为1800s
         }
         }
         return $ttl;
         return $ttl;