Browse Source

邀请海报缓存三天

wzq 5 years ago
parent
commit
2b4b8e9652
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/Repositories/PosterRepository.php

+ 1 - 1
app/Repositories/PosterRepository.php

@@ -226,7 +226,7 @@ class PosterRepository
         Storage::put($filename, (string)$main->encode('jpg'));
         Storage::put($filename, (string)$main->encode('jpg'));
         $url = 'http://oss.caihongxingqiu.net/'.$filename;
         $url = 'http://oss.caihongxingqiu.net/'.$filename;
         Redis::set($key, $url);
         Redis::set($key, $url);
-//        Redis::expire($key, 3600 * 24 * 3);
+        Redis::expire($key, 3600 * 24 * 3);
 
 
         return jsonSuccess($url);
         return jsonSuccess($url);
     }
     }