1111
1212#import < UserNotifications/UserNotifications.h>
1313#import " SecretStorage.h"
14- #import " MTAConfig.h"
1514#import " QCloudMyBucketListCtor.h"
1615// #import <QCloudCOSXML/QCloudLogManager.h>
1716// #define USE_TEMPERATE_SECRET
@@ -29,7 +28,7 @@ @interface AppDelegate () <QCloudSignatureProvider>
2928@implementation AppDelegate
3029
3130- (void ) fenceQueue : (QCloudCredentailFenceQueue *)queue requestCreatorWithContinue : (QCloudCredentailFenceQueueContinue)continueBlock
32- {
31+ {
3332 QCloudCredential* credential = [QCloudCredential new ];
3433 credential.secretID = @" secretID" ;
3534 credential.secretKey = @" secretKey" ;
@@ -50,11 +49,11 @@ - (void) signatureWithFields:(QCloudSignatureFields*)fileds
5049 continueBlock (nil , error);
5150 } else {
5251 QCloudSignature* signature = [creator signatureForData: urlRequst];
53- continueBlock (signature, nil );
52+ continueBlock (signature, nil );
5453 }
5554 }];
5655#else
57- QCloudCredential* credential = [QCloudCredential new ];
56+ QCloudCredential* credential = [QCloudCredential new ];
5857 credential.secretID = [SecretStorage sharedInstance ].secretID ;
5958 credential.secretKey = [SecretStorage sharedInstance ].secretKey ;
6059 QCloudAuthentationV5Creator* creator = [[QCloudAuthentationV5Creator alloc ] initWithCredential: credential];
@@ -72,7 +71,7 @@ - (void) setupCOSXMLShareService {
7271 endpoint.regionName = kRegion ;
7372 endpoint.useHTTPS = YES ;
7473 configuration.endpoint = endpoint;
75-
74+
7675 [QCloudCOSXMLService registerDefaultCOSXMLWithConfiguration: configuration];
7776 [QCloudCOSTransferMangerService registerDefaultCOSTransferMangerWithConfiguration: configuration];
7877
@@ -82,21 +81,20 @@ - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(
8281 [self setupCOSXMLShareService ];
8382 self.credentialFenceQueue = [QCloudCredentailFenceQueue new ];
8483 self.credentialFenceQueue .delegate = self;
85- [[TACMTAConfig getInstance ] setDebugEnable: YES ];
86-
84+
8785 [QCloudCOSXMLConfiguration sharedInstance ].currentRegion = kRegion ;
8886 QCloudServiceConfiguration* configuration = [[QCloudCOSXMLService defaultCOSXML ].configuration copy ];
8987 configuration.endpoint .regionName = kRegion ;
9088 [QCloudCOSTransferMangerService registerCOSTransferMangerWithConfiguration: configuration withKey: kRegion ];
91-
89+
9290 [QCloudCOSXMLService registerCOSXMLWithConfiguration: configuration withKey: kRegion ];
93-
91+
9492 QCloudMyBucketListCtor * bucketList = [[QCloudMyBucketListCtor alloc ]init];
9593 _window = [[UIWindow alloc ]initWithFrame:SCREEN_FRAME];
9694 [_window makeKeyAndVisible ];
9795 UINavigationController * navRoot = [[UINavigationController alloc ]initWithRootViewController:bucketList];
9896 _window.rootViewController = navRoot;
99-
97+
10098 return YES ;
10199}
102100// 后台上传要实现该方法
0 commit comments