修改接口
This commit is contained in:
@@ -56,7 +56,8 @@ typedef void(^KBShopRestoreCompletion)(BOOL success,
|
||||
completion:(KBShopDownloadInfoCompletion)completion;
|
||||
|
||||
/// 推荐主题列表(用于皮肤详情页底部网格)
|
||||
- (void)fetchRecommendedThemesWithCompletion:(KBShopThemesCompletion)completion;
|
||||
- (void)fetchRecommendedThemesWithThemeId:(nullable NSString *)themeId
|
||||
completion:(KBShopThemesCompletion)completion;
|
||||
|
||||
/// 恢复已删除的主题(/themes/restore)
|
||||
- (void)restoreThemeWithId:(nullable NSString *)themeId
|
||||
|
||||
@@ -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