Commit 1ba49d10 authored by 陈俊俊's avatar 陈俊俊

接口修改

parent d8cf8511
...@@ -115,7 +115,7 @@ static NSString * const ICRHTTPInterface[] = { ...@@ -115,7 +115,7 @@ static NSString * const ICRHTTPInterface[] = {
//Person //Person
[kICRHTTP_PersonQuery] = @"user/download", [kICRHTTP_PersonQuery] = @"user/download",
//行情调研 //行情调研
[XFFHttp_SurveySave] = @"survey/save" [XFFHttp_SurveySave] = @"survey/save_survey"
}; };
static NSString * const ICRAttachmentTypeValue[] = { static NSString * const ICRAttachmentTypeValue[] = {
...@@ -1301,10 +1301,9 @@ acceptTypeJson:YES ...@@ -1301,10 +1301,9 @@ acceptTypeJson:YES
} }
}; };
NSDictionary *dict = data; NSDictionary *dict = data;
NSString *urlStr = [[[self class] UrlForPluginHTTPAction:XFFHttp_SurveySave] stringByAppendingFormat:@"?time=%@&operator.id=%@&operator.operName=%@&enterprise=%@",[[NSDate date] httpParameterString],@"admin",@"123456",@"402851814e20d2d9014e20d2e8960030"];
NSString *encodeUrlStr = [urlStr stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding];
NSString *urlStr = [[self class] UrlForPluginHTTPAction:XFFHttp_SurveySave]; [self POST:encodeUrlStr parameters:dict needToken:NO acceptTypeJson:YES success:success failure:failure];
[self POST:urlStr parameters:dict needToken:NO acceptTypeJson:YES success:success failure:failure];
} }
......
...@@ -100,21 +100,20 @@ typedef enum : NSUInteger { ...@@ -100,21 +100,20 @@ typedef enum : NSUInteger {
switch (btn.tag) { switch (btn.tag) {
case SaveTag: case SaveTag:
{ {
Survey *survey = [[Survey alloc]init];
survey.uuid = @"";
survey.title = @"dddd";
survey.productcode = @"1111";
// survey.begindate = [NSDate date];
// survey.enddate = [NSDate date];
survey.note = @"ddddgdss";
//保存 //保存
void(^succ)(id) = ^(id data) { void(^succ)(id) = ^(id data) {
[IBTLoadingView hideHUDWithText:nil];
NSLog(@"%@",data); NSLog(@"%@",data);
}; };
void(^fail)(id) = ^(id data) { void(^fail)(id) = ^(id data) {
[IBTLoadingView hideHUDWithText:nil];
[IBTLoadingView showTips:data]; [IBTLoadingView showTips:data];
}; };
NSDictionary *dict = @{@"authenticode":@"sssffff",@"userUuid":@"1123",@"action":@"save",@"survey":[survey dictForCommit]}; NSDate *begin = [NSDate date];
NSDate *endDate = [NSDate date];
NSDictionary *dict = @{@"uuid":@"sssffff",@"billnumber":@"1111",@"title":@"gdgfd",@"productUuid":@"gdgfdgd",@"productCode":@"11111",@"productName":@"gfdgfds",@"beginDate":[begin httpParameterString],@"endDate":[endDate httpParameterString],@"remark":@"范德萨范德萨",@"users":@""};
[IBTLoadingView showProgressLabel:@"正在保存..."];
[[ICRHTTPController sharedController] saveSurveyWithAuthenticode:dict success:succ failure:fail]; [[ICRHTTPController sharedController] saveSurveyWithAuthenticode:dict success:succ failure:fail];
} }
break; break;
......
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