diff --git a/Easydict/Feature/Service/Caiyun/CaiyunService.swift b/Easydict/Feature/Service/Caiyun/CaiyunService.swift index b20584637..2c6b3dcf3 100644 --- a/Easydict/Feature/Service/Caiyun/CaiyunService.swift +++ b/Easydict/Feature/Service/Caiyun/CaiyunService.swift @@ -87,7 +87,7 @@ public final class CaiyunService: QueryService { .validate() .responseDecodable(of: CaiyunResponse.self) { [weak self] response in guard let self else { return } - let result = result + let result = self.result switch response.result { case let .success(value): diff --git a/Easydict/Feature/Service/Tencent/TencentService.swift b/Easydict/Feature/Service/Tencent/TencentService.swift index 152729994..5deb732dd 100644 --- a/Easydict/Feature/Service/Tencent/TencentService.swift +++ b/Easydict/Feature/Service/Tencent/TencentService.swift @@ -115,7 +115,7 @@ public final class TencentService: QueryService { .validate() .responseDecodable(of: TencentResponse.self) { [weak self] response in guard let self else { return } - let result = result + let result = self.result switch response.result { case let .success(value):