Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
X
xffruit
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
张杰
xffruit
Commits
1ba49d10
Commit
1ba49d10
authored
9 years ago
by
陈俊俊
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
接口修改
parent
d8cf8511
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
13 deletions
+11
-13
ICRHTTPController.m
XFFruit/Controllers/HTTPController/ICRHTTPController.m
+4
-5
NewSurveyViewController.m
...wControllers/Survey/controllers/NewSurveyViewController.m
+7
-8
No files found.
XFFruit/Controllers/HTTPController/ICRHTTPController.m
View file @
1ba49d10
...
...
@@ -115,7 +115,7 @@ static NSString * const ICRHTTPInterface[] = {
//Person
[
kICRHTTP_PersonQuery
]
=
@"user/download"
,
//行情调研
[
XFFHttp_SurveySave
]
=
@"survey/save"
[
XFFHttp_SurveySave
]
=
@"survey/save
_survey
"
};
static
NSString
*
const
ICRAttachmentTypeValue
[]
=
{
...
...
@@ -1301,10 +1301,9 @@ acceptTypeJson:YES
}
};
NSDictionary
*
dict
=
data
;
NSString
*
urlStr
=
[[
self
class
]
UrlForPluginHTTPAction
:
XFFHttp_SurveySave
];
[
self
POST
:
urlStr
parameters
:
dict
needToken
:
NO
acceptTypeJson
:
YES
success
:
success
failure
:
failure
];
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
];
[
self
POST
:
encodeUrlStr
parameters
:
dict
needToken
:
NO
acceptTypeJson
:
YES
success
:
success
failure
:
failure
];
}
...
...
This diff is collapsed.
Click to expand it.
XFFruit/ViewControllers/Survey/controllers/NewSurveyViewController.m
View file @
1ba49d10
...
...
@@ -100,21 +100,20 @@ typedef enum : NSUInteger {
switch
(
btn
.
tag
)
{
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
)
{
[
IBTLoadingView
hideHUDWithText
:
nil
];
NSLog
(
@"%@"
,
data
);
};
void
(
^
fail
)(
id
)
=
^
(
id
data
)
{
[
IBTLoadingView
hideHUDWithText
:
nil
];
[
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
];
}
break
;
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment