From 4269fde923263192ff112a9fc66e1fc98ca69d78 Mon Sep 17 00:00:00 2001 From: CodeST <694468528@qq.com> Date: Fri, 27 Feb 2026 16:28:15 +0800 Subject: [PATCH] 1 --- Shared/KBSkinInstallBridge.m | 2 +- Shared/Localization/en.lproj/Localizable.strings | 1 + Shared/Localization/zh-Hans.lproj/Localizable.strings | 1 + keyBoard/Class/Manager/KBSkinService.m | 2 +- keyBoard/Class/Shop/VC/KBSkinDetailVC.m | 2 +- keyBoard/Class/Shop/VM/KBShopVM.m | 8 +++++--- 6 files changed, 10 insertions(+), 6 deletions(-) diff --git a/Shared/KBSkinInstallBridge.m b/Shared/KBSkinInstallBridge.m index e8b771d..a1b6a81 100644 --- a/Shared/KBSkinInstallBridge.m +++ b/Shared/KBSkinInstallBridge.m @@ -443,7 +443,7 @@ static NSString * const kKBSkinMetadataThemeKey = @"theme_json"; #if __has_include("KBNetworkManager.h") // 远程下载(http/https) NSLog(@"🌐[SkinBridge] will GET zip: %@", zipURL); - [KBHUD showWithStatus:@"正在下载..."]; + [KBHUD showWithStatus:KBLocalized(@"Downloading...")]; [[KBNetworkManager shared] GETData:zipURL parameters:nil headers:nil completion:^(NSData *data, NSURLResponse *response, NSError *error) { NSLog(@"🌐[SkinBridge] GET finished id=%@ error=%@", skinId, error); if (error || data.length == 0) { diff --git a/Shared/Localization/en.lproj/Localizable.strings b/Shared/Localization/en.lproj/Localizable.strings index bc127b3..9a33487 100644 --- a/Shared/Localization/en.lproj/Localizable.strings +++ b/Shared/Localization/en.lproj/Localizable.strings @@ -209,3 +209,4 @@ "Purchase pending approval." = "Purchase pending approval."; "Unable to obtain transaction payload." = "Unable to obtain transaction payload."; "Resume Purchase" = "Resume Purchase"; +"Downloading..." = "Downloading..."; diff --git a/Shared/Localization/zh-Hans.lproj/Localizable.strings b/Shared/Localization/zh-Hans.lproj/Localizable.strings index aaab542..ce983a2 100644 --- a/Shared/Localization/zh-Hans.lproj/Localizable.strings +++ b/Shared/Localization/zh-Hans.lproj/Localizable.strings @@ -211,3 +211,4 @@ "Purchase pending approval." = "购买等待确认"; "Unable to obtain transaction payload." = "无法获取交易凭据"; "Resume Purchase" = "恢复购买"; +"Downloading..." = "正在下载..."; diff --git a/keyBoard/Class/Manager/KBSkinService.m b/keyBoard/Class/Manager/KBSkinService.m index 7d6dc04..b873972 100644 --- a/keyBoard/Class/Manager/KBSkinService.m +++ b/keyBoard/Class/Manager/KBSkinService.m @@ -103,7 +103,7 @@ } NSString *message = nil; if (success) { - message = KBLocalized(@"已应用,切到键盘查看"); + message = KBLocalized(@"Applied. Switch to the keyboard to view."); } else if ([error.domain isEqualToString:KBSkinBridgeErrorDomain] && error.code == KBSkinBridgeErrorContainerUnavailable) { message = KBLocalized(@"无法访问共享容器,应用皮肤失败"); diff --git a/keyBoard/Class/Shop/VC/KBSkinDetailVC.m b/keyBoard/Class/Shop/VC/KBSkinDetailVC.m index 15e238c..0b84b9a 100644 --- a/keyBoard/Class/Shop/VC/KBSkinDetailVC.m +++ b/keyBoard/Class/Shop/VC/KBSkinDetailVC.m @@ -313,7 +313,7 @@ typedef NS_ENUM(NSInteger, KBSkinDetailSection) { skin[@"force_download"] = @(YES); NSLog(@"⬇️[SkinDetail] download request id=%@ zip=%@ force=YES", skin[@"id"], skin[@"zip_url"]); - [KBHUD showWithStatus:@"正在下载..."]; + [KBHUD showWithStatus:KBLocalized(@"Downloading...")]; [[KBSkinService shared] applySkinWithJSON:skin fromViewController:self mode:KBSkinSourceModeRemoteZip diff --git a/keyBoard/Class/Shop/VM/KBShopVM.m b/keyBoard/Class/Shop/VM/KBShopVM.m index c416c15..a7c85bd 100644 --- a/keyBoard/Class/Shop/VM/KBShopVM.m +++ b/keyBoard/Class/Shop/VM/KBShopVM.m @@ -213,9 +213,11 @@ return; } NSString *themeIdValue = [[self kb_themeIdParamFromString:themeId] description]; - NSString *path = [NSString stringWithFormat:@"%@?themeId=%@", API_THEME_RESTORE, themeIdValue ?: @""]; - [[KBNetworkManager shared] POST:path - jsonBody:nil +// NSString *path = [NSString stringWithFormat:@"%@?themeId=%@", API_THEME_RESTORE, themeIdValue ?: @""]; + NSDictionary *body = @{@"themeId": [self kb_themeIdParamFromString:themeId]}; + + [[KBNetworkManager shared] POST:API_THEME_RESTORE + jsonBody:body headers:nil autoShowBusinessError:NO completion:^(NSDictionary * _Nullable json,