修改接口
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user