Sin descripción

FKOrderDetailRequest.m 1.8KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. //
  2. // FKOrderDetailRequest.m
  3. // FirstLink
  4. //
  5. // Created by jack on 15/9/10.
  6. // Copyright (c) 2015年 FirstLink. All rights reserved.
  7. //
  8. #import "FKOrderDetailRequest.h"
  9. @implementation FKOrderDetailRequest
  10. + (void)requestOrderDetail:(int)identify orderID:(NSString *)orderID delegate:(id<FLNetworkDelegate>)delegate {
  11. if (!orderID || orderID.length == 0) return;
  12. NSString *itemJsonString = [FLRequestHelper JSONStringWithKeys:@[@"id"] values:@[orderID]];
  13. NSMutableDictionary *para = [NSMutableDictionary dictionaryWithDictionary:[FLRequestHelper commonParamater]];
  14. [para setValue:itemJsonString forKey:@"payment_order_json"];
  15. NSString *urlString = [NSString stringWithFormat:@"%@/link-site/api/payment_order/get_payment_order.json", [[FKServerUtil sharedInstance] apiServer]];
  16. [[FLDataCenter sharedDataCenter] POST:urlString
  17. para:para
  18. identify:identify
  19. delegate:delegate];
  20. }
  21. + (void)requestConfirmReceive:(int)identify
  22. orderID:(NSString *)orderID
  23. deleagate:(id<FLNetworkDelegate>)delegate {
  24. if (orderID.length == 0) {
  25. return;
  26. }
  27. NSString *itemJSONString = [FLRequestHelper JSONStringWithKeys:@[@"id"]
  28. values:@[orderID]];
  29. NSMutableDictionary *para = [NSMutableDictionary dictionary];
  30. [para setValue:itemJSONString forKey:@"post_order_json"];
  31. [para addEntriesFromDictionary:[FLRequestHelper commonParamater]];
  32. NSString *URLString = [NSString stringWithFormat:@"%@/link-site/api/post_order/receipt_post_order.json", [[FKServerUtil sharedInstance] apiServer]];
  33. [[FLDataCenter sharedDataCenter] POST:URLString para:para identify:identify delegate:delegate];
  34. }
  35. @end