This commit is contained in:
2026-02-27 16:28:15 +08:00
parent c3e037e070
commit 4269fde923
6 changed files with 10 additions and 6 deletions

View File

@@ -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

View File

@@ -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,