1234567891011121314151617181920212223242526272829 |
- //
- // FKHotSaleRequest.m
- // FirstLink
- //
- // Created by ascii on 2017/6/10.
- // Copyright © 2017年 FirstLink. All rights reserved.
- //
- #import "FKHotSaleRequest.h"
- @implementation FKHotSaleRequest
- + (void)requestHotSaleListWithIdentify:(NSInteger)identify
- cID:(NSString *)cID
- startRow:(NSUInteger)startRow
- delegate:(id<FLNetworkDelegate>)delegate {
- NSString *itemJson = [FLRequestHelper JSONStringWithKeys:@[@"backstage_category_id", @"type", @"start_row", @"page_size"]
- values:@[cID ? : @"", @(2), @(startRow), @(PAGE_RECORD_COUNT)]];
-
- NSMutableDictionary *dictM = [NSMutableDictionary dictionary];
- [dictM setValue:itemJson forKey:@"product_json"];
- [dictM addEntriesFromDictionary:[FLRequestHelper commonParamater]];
-
- NSString *urlString = [NSString stringWithFormat:@"%@/link-site/api/product/find_hot_products.json", [[FKServerUtil sharedInstance] apiServer]];
- [[FLDataCenter sharedDataCenter] POST:urlString para:dictM identify:(int)identify delegate:delegate];
- }
- @end
|