Browse Source

cos配置

lizhen_gitee 3 months ago
parent
commit
46e5969b04
2 changed files with 3 additions and 3 deletions
  1. 2 2
      application/common.php
  2. 1 1
      application/extra/upload.php

+ 2 - 2
application/common.php

@@ -595,8 +595,8 @@ if (!function_exists('localpath_to_netpath')) {
         } elseif (strrpos($path, 'http') !== false) {
             return $path;
         } else {
-            return config('pay_notify_url') . str_replace("\\", "/", $path);
-//            return config('upload.cdnurl') . str_replace("\\", "/", $path);
+//            return config('pay_notify_url') . str_replace("\\", "/", $path);
+            return config('upload.cdnurl') . str_replace("\\", "/", $path);
         }
     }
 }

+ 1 - 1
application/extra/upload.php

@@ -9,7 +9,7 @@ return [
     /**
      * CDN地址
      */
-    'cdnurl'    => '',
+    'cdnurl'    => 'https://xiaoshan-1331914430.cos.ap-beijing.myqcloud.com',
     /**
      * 文件保存格式
      */