xielin пре 5 година
родитељ
комит
39c04bf8f1
2 измењених фајлова са 4 додато и 4 уклоњено
  1. 1 1
      app/Repositories/PosterRepository.php
  2. 3 3
      config/filesystems.php

+ 1 - 1
app/Repositories/PosterRepository.php

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

+ 3 - 3
config/filesystems.php

@@ -66,9 +66,9 @@ return [
 
         'oss' => [
             'driver' => 'oss',
-            'access_id' => 'LTAIGTDKUOVQf2Ln',
-            'access_key' => 'HzY9r2gDPbURQ0Vp69A7THV0RmxMkb',
-            'bucket' => 'rainbowstar',
+            'access_id' => 'LTAIG2eCY5UdheM1',
+            'access_key' => '4RJTcJkZsOJIby2oewUFHqUJxUR1vm',
+            'bucket' => 'uptoyo',
             'endpoint' => 'oss-cn-zhangjiakou.aliyuncs.com', // OSS 外网节点或自定义外部域名
 //            'endpoint_internal' => '<internal endpoint [OSS内网节点] 如:oss-cn-shenzhen-internal.aliyuncs.com>', // v2.0.4 新增配置属性,如果为空,则默认使用 endpoint 配置(由于内网上传有点小问题未解决,请大家暂时不要使用内网节点上传,正在与阿里技术沟通中)
             'cdnDomain' => '', // 如果isCName为true, getUrl会判断cdnDomain是否设定来决定返回的url,如果cdnDomain未设置,则使用endpoint来生成url,否则使用cdn