12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- //
- // FKOrderDetailRequest.m
- // FirstLink
- //
- // Created by jack on 15/9/10.
- // Copyright (c) 2015年 FirstLink. All rights reserved.
- //
- #import "FKOrderDetailRequest.h"
- @implementation FKOrderDetailRequest
- + (void)requestOrderDetail:(int)identify orderID:(NSString *)orderID delegate:(id<FLNetworkDelegate>)delegate {
- if (!orderID || orderID.length == 0) return;
-
- NSString *itemJsonString = [FLRequestHelper JSONStringWithKeys:@[@"id"] values:@[orderID]];
- NSMutableDictionary *para = [NSMutableDictionary dictionaryWithDictionary:[FLRequestHelper commonParamater]];
- [para setValue:itemJsonString forKey:@"payment_order_json"];
-
- NSString *urlString = [NSString stringWithFormat:@"%@/link-site/api/payment_order/get_payment_order.json", [[FKServerUtil sharedInstance] apiServer]];
-
- [[FLDataCenter sharedDataCenter] POST:urlString
- para:para
- identify:identify
- delegate:delegate];
- }
- + (void)requestConfirmReceive:(int)identify
- orderID:(NSString *)orderID
- deleagate:(id<FLNetworkDelegate>)delegate {
- if (orderID.length == 0) {
- return;
- }
- NSString *itemJSONString = [FLRequestHelper JSONStringWithKeys:@[@"id"]
- values:@[orderID]];
-
- NSMutableDictionary *para = [NSMutableDictionary dictionary];
- [para setValue:itemJSONString forKey:@"post_order_json"];
- [para addEntriesFromDictionary:[FLRequestHelper commonParamater]];
-
- NSString *URLString = [NSString stringWithFormat:@"%@/link-site/api/post_order/receipt_post_order.json", [[FKServerUtil sharedInstance] apiServer]];
- [[FLDataCenter sharedDataCenter] POST:URLString para:para identify:identify delegate:delegate];
- }
- @end
|