Commit 3569c83a authored by Sandy's avatar Sandy

增加了请求的方法

parent d2b761d6
......@@ -93,6 +93,9 @@ typedef NS_ENUM(NSUInteger, ICRAttachmentType) {
failure:(void (^)(id))fail;
- (void)postUrl:(NSString *)url params:(id)params success:(void (^)(id data))succ failure:(void (^)(id data))fail;
- (void)getUrl:(NSString *)url params:(id)params success:(void (^)(id data))succ failure:(void (^)(id data))fail;
@end
......@@ -705,4 +705,17 @@ acceptTypeJson:YES
// TODO
}
- (void)getUrl:(NSString *)url params:(id)params success:(void (^)(id data))succ failure:(void (^)(id data))fail {
[self GET:url parameters:params needToken:YES acceptTypeJson:YES success:^(AFHTTPRequestOperation *operation, id responseObject) {
succ(responseObject);
} failure:^(AFHTTPRequestOperation *operation, NSError *error) {
fail(error);
}];
}
@end
......@@ -12,6 +12,8 @@
#import "VankeAppBoard_iPhone.h"
#import "HistoryViewController.h"
#import "ChooseShopViewController.h"
#import "VankeUserLoginAPI.h"
#import "ICRHTTPController.h"
#define kCellID @"SalesInputTableViewCell.h"
@interface SalesInputViewController ()<UITableViewDelegate, UITableViewDataSource>
......@@ -148,6 +150,17 @@ ON_WILL_APPEAR( signal )
[self.navigationController pushViewController:history animated:YES];
}
- (void)setUpData {
ICRHTTPController *httpCtrl = [ICRHTTPController sharedController];
NSDictionary *myDictionary = @{@"shopCodeEquals" : @"a",
@"beginDateEquals" : @"a",
@"endDateEquals" : @"a",
@"pageNumber" : @0,
@"pageSize" : @0};
}
- (void)didReceiveMemoryWarning {
[super didReceiveMemoryWarning];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment