From a4dbf824042077a697c60eb83c6f86aa2a38394e Mon Sep 17 00:00:00 2001 From: tisfeng Date: Tue, 28 Nov 2023 22:53:35 +0800 Subject: [PATCH] fix: remove duplicated EZTencentAPIKey --- Easydict/Feature/Service/Model/EZConstKey.h | 7 ------- Easydict/Feature/Utility/EZLinkParser/EZSchemeParser.m | 8 +------- 2 files changed, 1 insertion(+), 14 deletions(-) diff --git a/Easydict/Feature/Service/Model/EZConstKey.h b/Easydict/Feature/Service/Model/EZConstKey.h index 4dd12b08a..9b85b0740 100644 --- a/Easydict/Feature/Service/Model/EZConstKey.h +++ b/Easydict/Feature/Service/Model/EZConstKey.h @@ -19,23 +19,16 @@ static NSString *const EZOpenAIAPIKey = @"EZOpenAIAPIKey"; static NSString *const EZOpenAITranslationKey = @"EZOpenAITranslationKey"; static NSString *const EZOpenAIDictionaryKey = @"EZOpenAIDictionaryKey"; static NSString *const EZOpenAISentenceKey = @"EZOpenAISentenceKey"; - static NSString *const EZOpenAIServiceUsageStatusKey = @"EZOpenAIServiceUsageStatusKey"; - static NSString *const EZOpenAIDomainKey = @"EZOpenAIDomainKey"; static NSString *const EZOpenAIEndPointKey = @"EZOpenAIEndPointKey"; static NSString *const EZOpenAIModelKey = @"EZOpenAIModelKey"; - static NSString *const EZDeepLAuthKey = @"EZDeepLAuthKey"; - static NSString *const EZBingCookieKey = @"EZBingCookieKey"; static NSString *const EZNiuTransAPIKey = @"EZNiuTransAPIKey"; - static NSString *const EZTencentAPIKey = @"EZTencentAPIKey"; - static NSString *const EZCaiyunToken = @"EZCaiyunToken"; -static NSString *const EZTencentAPIKey = @"EZTencentAPIKey"; @interface EZConstKey : NSObject diff --git a/Easydict/Feature/Utility/EZLinkParser/EZSchemeParser.m b/Easydict/Feature/Utility/EZLinkParser/EZSchemeParser.m index 7358b2e19..0c8d8b86f 100644 --- a/Easydict/Feature/Utility/EZLinkParser/EZSchemeParser.m +++ b/Easydict/Feature/Utility/EZLinkParser/EZSchemeParser.m @@ -204,16 +204,10 @@ - (NSArray *)allowedReadWriteKeys { EZDeepLAuthKey, EZDeepLTranslationAPIKey, EZNiuTransAPIKey, - - EZTencentAPIKey, - EZCaiyunToken, - - EZTencentAPIKey, + EZBingCookieKey, EZIntelligentQueryModeKey, - - EZBingCookieKey, ]; return readWriteKeys;