修改接口

This commit is contained in:
2025-12-23 14:07:53 +08:00
parent 2e1c261775
commit 262eb57b36
5 changed files with 75 additions and 70 deletions

View File

@@ -179,9 +179,14 @@
}];
}
- (void)fetchRecommendedThemesWithCompletion:(KBShopThemesCompletion)completion {
- (void)fetchRecommendedThemesWithThemeId:(nullable NSString *)themeId
completion:(KBShopThemesCompletion)completion {
NSMutableDictionary *params = [NSMutableDictionary dictionary];
if (themeId.length > 0) {
params[@"themeId"] = [self kb_themeIdParamFromString:themeId];
}
[[KBNetworkManager shared] GET:API_THEME_RECOMMENDED
parameters:nil
parameters:(params.count > 0 ? params : nil)
headers:nil
autoShowBusinessError:NO
completion:^(NSDictionary * _Nullable json,