File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
Source/LinkSDKDemo/Video/Login/Controller Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -108,9 +108,14 @@ - (void)saveDeviceInfo {
108108- (void )saveLoginViewInfo {
109109 [TIoTCoreUserManage shared ].demoAccessID = self.loginView .accessID .text ?:@" " ;
110110
111+ self.loginView .secretIDString = self.loginView .accessID .text ?:@" " ;
112+
111113 NSUserDefaults *defaluts = [NSUserDefaults standardUserDefaults ];
112114 if (![NSString isNullOrNilWithObject: self .loginView.accessID.text?:@" " ]) {
113115 [defaluts setValue: @{@" AccessTokenString" :self.loginView .accessToken .text ?:@" " ,@" productIDString" :self.loginView .productID .text ?:@" " } forKey: self .loginView.accessID.text?:@" " ];
116+ self.loginView .secretKeyString = self.loginView .accessToken .text ;
117+ self.loginView .productIDString = self.loginView .productID .text ;
118+
114119 }
115120}
116121
@@ -125,6 +130,7 @@ - (void)saveAccessID {
125130 }else {
126131 NSMutableArray *IDArray = [[NSMutableArray alloc ]init];
127132 [IDArray addObject: self .loginView.secretIDString?:@" " ];
133+ [defaluts removeObjectForKey: [defaluts objectForKey: @" AccessIDArrayKey" ]];
128134 [defaluts setValue: IDArray forKey: @" AccessIDArrayKey" ];
129135 }
130136}
You can’t perform that action at this time.
0 commit comments