Skip to content

Commit ecdadce

Browse files
authored
Merge pull request #124 from qiniu/fix/private-cloud-upload-auth
fix private cloud upload auth
2 parents d9f2440 + d0c7607 commit ecdadce

File tree

1 file changed

+4
-4
lines changed
  • src/renderer/main/files/transfer

1 file changed

+4
-4
lines changed

src/renderer/main/files/transfer/frame.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -171,8 +171,8 @@ webModule.controller(TRANSFER_FRAME_CONTROLLER_NAME, [
171171
clientOptions: {
172172
accessKey: AuthInfo.get().id,
173173
secretKey: AuthInfo.get().secret,
174-
ucUrl: NgConfig.ucUrl || "",
175-
regions: NgConfig.regions || [],
174+
ucUrl: ngConfig.load().ucUrl || "",
175+
regions: ngConfig.load().regions || [],
176176
},
177177
uploadOptions: {
178178
userNatureLanguage: localStorage.getItem("lang") || "zh-CN",
@@ -233,8 +233,8 @@ webModule.controller(TRANSFER_FRAME_CONTROLLER_NAME, [
233233
clientOptions: {
234234
accessKey: AuthInfo.get().id,
235235
secretKey: AuthInfo.get().secret,
236-
ucUrl: ngConfig.ucUrl || "",
237-
regions: ngConfig.regionId || [],
236+
ucUrl: ngConfig.load().ucUrl || "",
237+
regions: ngConfig.load().regions || [],
238238
backendMode: bucketInfo.qiniuBackendMode,
239239
},
240240
});

0 commit comments

Comments
 (0)