Skip to content

Commit

Permalink
Merge pull request #124 from qiniu/fix/private-cloud-upload-auth
Browse files Browse the repository at this point in the history
fix private cloud upload auth
  • Loading branch information
bachue authored Jul 6, 2022
2 parents d9f2440 + d0c7607 commit ecdadce
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/renderer/main/files/transfer/frame.js
Original file line number Diff line number Diff line change
Expand Up @@ -171,8 +171,8 @@ webModule.controller(TRANSFER_FRAME_CONTROLLER_NAME, [
clientOptions: {
accessKey: AuthInfo.get().id,
secretKey: AuthInfo.get().secret,
ucUrl: NgConfig.ucUrl || "",
regions: NgConfig.regions || [],
ucUrl: ngConfig.load().ucUrl || "",
regions: ngConfig.load().regions || [],
},
uploadOptions: {
userNatureLanguage: localStorage.getItem("lang") || "zh-CN",
Expand Down Expand Up @@ -233,8 +233,8 @@ webModule.controller(TRANSFER_FRAME_CONTROLLER_NAME, [
clientOptions: {
accessKey: AuthInfo.get().id,
secretKey: AuthInfo.get().secret,
ucUrl: ngConfig.ucUrl || "",
regions: ngConfig.regionId || [],
ucUrl: ngConfig.load().ucUrl || "",
regions: ngConfig.load().regions || [],
backendMode: bucketInfo.qiniuBackendMode,
},
});
Expand Down

0 comments on commit ecdadce

Please sign in to comment.