萤石云 iOSSDK,移植跨平台相关工程
Davin
2024-11-20 8bfc1215384797f9b709ee06bc721d472182f15b
EZSDK/EZSDK/EZ/Global/GlobalKit.m
@@ -35,6 +35,8 @@
        _hdlRefreshToken = [[NSUserDefaults standardUserDefaults] objectForKey:EZhdlRefreshToken];
        
        _deviceVerifyCodeBySerial = [NSMutableDictionary new];
        self.WiFiConfigPrefix = @"EZVIZ";
    }
    return self;
}
@@ -66,7 +68,7 @@
    _GlobalRequestHttpsHost = GlobalRequestHttpsHost;
}
- (void)sethdlPlatform:(int )hdlPlatform
- (void)sethdlPlatform:(int)hdlPlatform
{
    _hdlPlatform = hdlPlatform;
}
@@ -74,7 +76,7 @@
- (void)clearSession
{
    _accessToken = nil;
    _hdlRefreshToken = nil;
    _hdlAccessToken = nil;
    _hdlRefreshToken = nil;
    [[NSUserDefaults standardUserDefaults] removeObjectForKey:EZOpenSDKAccessToken];
    [[NSUserDefaults standardUserDefaults] synchronize];