diff --git a/ios/tencentcloud_cos_sdk_plugin.podspec b/ios/tencentcloud_cos_sdk_plugin.podspec index 9197c6f..488d81c 100644 --- a/ios/tencentcloud_cos_sdk_plugin.podspec +++ b/ios/tencentcloud_cos_sdk_plugin.podspec @@ -17,7 +17,7 @@ Tencent COS Flutter Plugin SDK. s.source_files = 'Classes/**/*' s.public_header_files = 'Classes/**/*.h' s.dependency 'Flutter' - s.dependency 'QCloudCOSXML','>= 6.4.0' + s.dependency 'QCloudCOSXML','= 6.4.0' s.platform = :ios, '9.0' s.static_framework = true diff --git a/lib/cos.dart b/lib/cos.dart index 07efd42..c9ae00d 100644 --- a/lib/cos.dart +++ b/lib/cos.dart @@ -97,7 +97,8 @@ class Cos { /// 包括SessionCredential或ScopeLimitCredential Future forceInvalidationCredential() async { flutterCosApi.forceInvalidationScopeCredentials(); - return await _cosApi.forceInvalidationCredential(); + await _cosApi.forceInvalidationCredential(); + _initialized = false; } Future setCloseBeacon(bool isCloseBeacon) async {