Bez popisu

FKHotSaleRequest.m 1.1KB

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