diff --git a/Easydict/Feature/Service/Bing/EZBingService.m b/Easydict/Feature/Service/Bing/EZBingService.m index 2b08d0ed1..5483b8200 100644 --- a/Easydict/Feature/Service/Bing/EZBingService.m +++ b/Easydict/Feature/Service/Bing/EZBingService.m @@ -104,10 +104,6 @@ - (BOOL)isEnglishWordToChinese:(NSString *)text from:(nonnull EZLanguage)from to } - (void)bingTranslate:(NSString *)text useDictQuery:(BOOL)useDictQuery from:(nonnull EZLanguage)from to:(nonnull EZLanguage)to completion:(nonnull void (^)(EZQueryResult *, NSError *_Nullable))completion { - if ([self prehandleQueryTextLanguage:text from:from to:to completion:completion]) { - return; - } - self.isDictQueryResult = NO; if (useDictQuery) { [self.request translateTextFromDict:text completion:^(NSDictionary * _Nullable json, NSError * _Nullable error) { diff --git a/Easydict/Feature/Service/Model/EZQueryService.m b/Easydict/Feature/Service/Model/EZQueryService.m index 2a1646fea..f73bd5275 100644 --- a/Easydict/Feature/Service/Model/EZQueryService.m +++ b/Easydict/Feature/Service/Model/EZQueryService.m @@ -178,8 +178,8 @@ - (BOOL)prehandleQueryTextLanguage:(NSString *)text } } - NSString *fromLanguage = [self languageCodeForLanguage:self.queryModel.queryFromLanguage]; - NSString *toLanguage = [self languageCodeForLanguage:self.queryModel.queryTargetLanguage]; + NSString *fromLanguage = [self languageCodeForLanguage:from]; + NSString *toLanguage = [self languageCodeForLanguage:to]; BOOL unsupportedLanguage = NO; diff --git a/Easydict/NewApp/Configuration/Configuration+Defaults.swift b/Easydict/NewApp/Configuration/Configuration+Defaults.swift index 240aed001..0c9b4d549 100644 --- a/Easydict/NewApp/Configuration/Configuration+Defaults.swift +++ b/Easydict/NewApp/Configuration/Configuration+Defaults.swift @@ -55,7 +55,7 @@ extension Defaults.Keys { static let clearInput = Key("EZConfiguration_kClearInputKey", default: true) static let keepPrevResultWhenEmpty = Key("EZConfiguration_kKeepPrevResultKey", default: true) static let selectQueryTextWhenWindowActivate = Key("EZConfiguration_kSelectQueryTextWhenWindowActivate", default: false) - static let enableBetaNewApp = Key("EZConfiguration_kEnableBetaNewAppKey", default: false) + static let enableBetaNewApp = Key("EZConfiguration_kEnableBetaNewAppKey", default: true) static let enableBetaFeature = Key("EZBetaFeatureKey", default: false)