123456789101112131415161718192021222324252627282930313233343536373839404142 |
- //
- // FKPintuanDetail.m
- // FirstLink
- //
- // Created by ascii on 15/10/8.
- // Copyright © 2015年 FirstLink. All rights reserved.
- //
- #import "FKGroupDetailRequest.h"
- @implementation FKGroupDetailRequest
- + (void)requestItem:(int)identify
- postID:(NSString *)postID
- userID:(NSString *)userID
- deleagate:(id<FLNetworkDelegate>)delegate {
- if (!postID || !userID) {
- return;
- }
-
- NSString *itemJSONString = [FLRequestHelper JSONStringWithKeys:@[@"id", @"user_id", @"type"]
- values:@[postID, userID, @"6"]];
-
- NSMutableDictionary *para = [NSMutableDictionary dictionary];
- [para setValue:itemJSONString forKey:@"post_json"];
- [para addEntriesFromDictionary:[FLRequestHelper commonParamater]];
-
- NSString *URLString;
- if ([FKUserManager sharedManager].applicationMode == ApplicationModeVisitor) {
- URLString = [NSString stringWithFormat:@"%@/link-site/api/post/get_groupon_detail.json", [[FKServerUtil sharedInstance] apiServer]];
- } else {
- URLString = [NSString stringWithFormat:@"%@/link-site/api/post/get_groupon.json", [[FKServerUtil sharedInstance] apiServer]];
- }
-
- [[FLDataCenter sharedDataCenter] POST:URLString
- para:para
- identify:identify
- delegate:delegate];
- }
- @end
|