File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -81,13 +81,20 @@ - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(
8181 [self setupCOSXMLShareService ];
8282 self.credentialFenceQueue = [QCloudCredentailFenceQueue new ];
8383 self.credentialFenceQueue .delegate = self;
84-
84+
85+ [QCloudCOSXMLConfiguration sharedInstance ].currentRegion = kRegion ;
86+ QCloudServiceConfiguration* configuration = [[QCloudCOSXMLService defaultCOSXML ].configuration copy ];
87+ configuration.endpoint .regionName = kRegion ;
88+ [QCloudCOSTransferMangerService registerCOSTransferMangerWithConfiguration: configuration withKey: kRegion ];
89+
90+ [QCloudCOSXMLService registerCOSXMLWithConfiguration: configuration withKey: kRegion ];
91+
8592 QCloudMyBucketListCtor * bucketList = [[QCloudMyBucketListCtor alloc ]init];
8693 _window = [[UIWindow alloc ]initWithFrame:SCREEN_FRAME];
8794 [_window makeKeyAndVisible ];
8895 UINavigationController * navRoot = [[UINavigationController alloc ]initWithRootViewController:bucketList];
8996 _window.rootViewController = navRoot;
90-
97+
9198 return YES ;
9299}
93100// 后台上传要实现该方法
You can’t perform that action at this time.
0 commit comments