Açıklama Yok

FKGroupDetailRequest.m 1.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. //
  2. // FKPintuanDetail.m
  3. // FirstLink
  4. //
  5. // Created by ascii on 15/10/8.
  6. // Copyright © 2015年 FirstLink. All rights reserved.
  7. //
  8. #import "FKGroupDetailRequest.h"
  9. @implementation FKGroupDetailRequest
  10. + (void)requestItem:(int)identify
  11. postID:(NSString *)postID
  12. userID:(NSString *)userID
  13. deleagate:(id<FLNetworkDelegate>)delegate {
  14. if (!postID || !userID) {
  15. return;
  16. }
  17. NSString *itemJSONString = [FLRequestHelper JSONStringWithKeys:@[@"id", @"user_id", @"type"]
  18. values:@[postID, userID, @"6"]];
  19. NSMutableDictionary *para = [NSMutableDictionary dictionary];
  20. [para setValue:itemJSONString forKey:@"post_json"];
  21. [para addEntriesFromDictionary:[FLRequestHelper commonParamater]];
  22. NSString *URLString;
  23. if ([FKUserManager sharedManager].applicationMode == ApplicationModeVisitor) {
  24. URLString = [NSString stringWithFormat:@"%@/link-site/api/post/get_groupon_detail.json", [[FKServerUtil sharedInstance] apiServer]];
  25. } else {
  26. URLString = [NSString stringWithFormat:@"%@/link-site/api/post/get_groupon.json", [[FKServerUtil sharedInstance] apiServer]];
  27. }
  28. [[FLDataCenter sharedDataCenter] POST:URLString
  29. para:para
  30. identify:identify
  31. delegate:delegate];
  32. }
  33. @end