Parcourir la source

调整四福堂切换oss

yfh il y a 13 heures
Parent
commit
918b68c39f
2 fichiers modifiés avec 8 ajouts et 6 suppressions
  1. 2 5
      .env.prod-sft
  2. 6 1
      src/utils/obs.js

+ 2 - 5
.env.prod-sft

@@ -17,15 +17,12 @@ VUE_APP_OBS_SECRET_ACCESS_KEY = sbyeNJLbcYmH6copxeFP9pAoksM4NIT9Zw4x0SRX
 # 存储桶配置
 VUE_APP_OBS_SERVER = https://obs.cn-north-4.myhuaweicloud.com
 # 存储桶配置
-VUE_APP_OBS_BUCKET = sft-hw079058881
-# 存储桶配置
-VUE_APP_COS_BUCKET = sft-1323137866
+VUE_APP_COS_BUCKET = sft-1361917636
 # 存储桶配置
 VUE_APP_COS_REGION = ap-chongqing
 # 线路一地址
 VUE_APP_VIDEO_LINE_1 = https://sfttcpv.ylrzcloud.com
-# 线路二地址
-VUE_APP_VIDEO_LINE_2 = https://sftobs.ylrztop.com
+
 
 # 开发环境配置
 ENV = 'development'

+ 6 - 1
src/utils/obs.js

@@ -39,7 +39,11 @@ export const uploadToOBS = async (file, progressCallback, type, cancelCallback)
           },
         })
       }
-
+      //四福堂专属配置
+      // resolve({
+      //   "RequestId": "",
+      //   "urlPath": ""
+      // })
       obsClient.putObject(
         {
           Bucket: process.env.VUE_APP_OBS_BUCKET,
@@ -65,6 +69,7 @@ export const uploadToOBS = async (file, progressCallback, type, cancelCallback)
           }
         },
       )
+      //注释到这里【四福堂】
     })
   } catch (error) {
     console.error("Error during upload:", error)