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
b96ea208
Commit
b96ea208
authored
Aug 10, 2015
by
陈俊俊
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
接口修改
parent
db0bcdf7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
10 deletions
+10
-10
ICRHTTPController.m
XFFruit/Controllers/HTTPController/ICRHTTPController.m
+8
-8
SurveyViewController.m
...ViewControllers/Survey/controllers/SurveyViewController.m
+2
-2
No files found.
XFFruit/Controllers/HTTPController/ICRHTTPController.m
View file @
b96ea208
...
@@ -382,12 +382,12 @@ acceptTypeJson:(BOOL)bAcceptJson
...
@@ -382,12 +382,12 @@ acceptTypeJson:(BOOL)bAcceptJson
userUtil
.
userName
=
nsUserName
;
userUtil
.
userName
=
nsUserName
;
userUtil
.
password
=
nsPassword
;
userUtil
.
password
=
nsPassword
;
userUtil
.
registerCode
=
nsRegisterCode
;
userUtil
.
registerCode
=
nsRegisterCode
;
userUtil
.
displayName
=
dictResult
[
@"user
"
][
@"name"
];
userUtil
.
displayName
=
dictResult
[
@"user
_name"
];
userUtil
.
userCode
=
dictResult
[
@"user
"
][
@"code"
];
userUtil
.
userCode
=
dictResult
[
@"user
_code"
];
userUtil
.
userId
=
dictResult
[
@"user
"
][
@"uuid"
];
userUtil
.
userId
=
dictResult
[
@"user
_uuid"
];
userUtil
.
orgCode
=
dictResult
[
@"enterprise
"
][
@"code"
];
userUtil
.
orgCode
=
dictResult
[
@"enterprise
_code"
];
userUtil
.
orgName
=
dictResult
[
@"enterprise
"
][
@"name"
];
userUtil
.
orgName
=
dictResult
[
@"enterprise
_name"
];
userUtil
.
orgId
=
dictResult
[
@"enterprise
"
][
@"uuid"
];
userUtil
.
orgId
=
dictResult
[
@"enterprise
_uuid"
];
[
userUtil
saveArchive
];
[
userUtil
saveArchive
];
if
(
succ
)
{
if
(
succ
)
{
succ
(
dictResult
);
succ
(
dictResult
);
...
@@ -1314,7 +1314,7 @@ acceptTypeJson:YES
...
@@ -1314,7 +1314,7 @@ acceptTypeJson:YES
NSDictionary
*
dict
=
data
;
NSDictionary
*
dict
=
data
;
NSString
*
currentTime
=
[[
NSDate
date
]
httpParameterString
];
NSString
*
currentTime
=
[[
NSDate
date
]
httpParameterString
];
ICRUserUtil
*
userUtil
=
[
ICRUserUtil
sharedInstance
];
ICRUserUtil
*
userUtil
=
[
ICRUserUtil
sharedInstance
];
NSString
*
urlStr
=
[[[
self
class
]
UrlForPluginHTTPAction
:
XFFHttp_SurveySave
]
stringByAppendingFormat
:
@"
/%@?time=%@&operator.id=%@&operator.operName=%@&enterprise=%@"
,
userUtil
.
userId
,
currentTime
,
userUtil
.
userCode
,
userUtil
.
displayName
,
userUtil
.
orgId
];
NSString
*
urlStr
=
[[[
self
class
]
UrlForPluginHTTPAction
:
XFFHttp_SurveySave
]
stringByAppendingFormat
:
@"
?time=%@&operator.id=%@&operator.operName=%@&enterprise=%@"
,
currentTime
,
userUtil
.
userCode
,
userUtil
.
displayName
,
userUtil
.
orgId
];
NSString
*
encodeUrlStr
=
[
urlStr
stringByAddingPercentEscapesUsingEncoding
:
NSUTF8StringEncoding
];
NSString
*
encodeUrlStr
=
[
urlStr
stringByAddingPercentEscapesUsingEncoding
:
NSUTF8StringEncoding
];
[
self
POST
:
encodeUrlStr
parameters
:
dict
needToken
:
NO
acceptTypeJson
:
YES
success
:
success
failure
:
failure
];
[
self
POST
:
encodeUrlStr
parameters
:
dict
needToken
:
NO
acceptTypeJson
:
YES
success
:
success
failure
:
failure
];
}
}
...
@@ -1343,7 +1343,7 @@ acceptTypeJson:YES
...
@@ -1343,7 +1343,7 @@ acceptTypeJson:YES
}
}
};
};
ICRUserUtil
*
userUtil
=
[
ICRUserUtil
sharedInstance
];
ICRUserUtil
*
userUtil
=
[
ICRUserUtil
sharedInstance
];
NSString
*
urlStr
=
[[[
self
class
]
UrlForPluginHTTPAction
:
XFFHttp_QuerySurvey
]
stringByAppendingFormat
:
@"
/%@?enterprise=%@&billNumberLike=%@&state=%@&titleLike=%@&orderField=%@&orderDirection=%@&page_number=%@&page_size=%@"
,
userUtil
.
userId
,
userUtil
.
org
Id
,
billNumberLinke
,
state
,
titleLike
,
orderFiled
,
orderDirection
,
@
(
page_number
),
@
(
page_size
)];
NSString
*
urlStr
=
[[[
self
class
]
UrlForPluginHTTPAction
:
XFFHttp_QuerySurvey
]
stringByAppendingFormat
:
@"
?enterprise=%@&userUuid=%@&billNumberLike=%@&state=%@&titleLike=%@&orderField=%@&orderDirection=%@&page_number=%@&page_size=%@"
,
userUtil
.
orgId
,
userUtil
.
user
Id
,
billNumberLinke
,
state
,
titleLike
,
orderFiled
,
orderDirection
,
@
(
page_number
),
@
(
page_size
)];
NSString
*
encodeUrlStr
=
[
urlStr
stringByAddingPercentEscapesUsingEncoding
:
NSUTF8StringEncoding
];
NSString
*
encodeUrlStr
=
[
urlStr
stringByAddingPercentEscapesUsingEncoding
:
NSUTF8StringEncoding
];
[
self
POST
:
encodeUrlStr
parameters
:
nil
needToken
:
NO
acceptTypeJson
:
YES
success
:
success
failure
:
failure
];
[
self
POST
:
encodeUrlStr
parameters
:
nil
needToken
:
NO
acceptTypeJson
:
YES
success
:
success
failure
:
failure
];
}
}
...
...
XFFruit/ViewControllers/Survey/controllers/SurveyViewController.m
View file @
b96ea208
...
@@ -62,8 +62,8 @@ typedef enum : NSUInteger {
...
@@ -62,8 +62,8 @@ typedef enum : NSUInteger {
[
IBTLoadingView
showTips
:
data
];
[
IBTLoadingView
showTips
:
data
];
};
};
[
IBTLoadingView
showProgressLabel
:
@"正在保存..."
];
[
IBTLoadingView
showProgressLabel
:
@"正在保存..."
];
// [[ICRHTTPController sharedController] querySurveyWithBillNUmberLinke:@"" state:@"initial" titleLike:@"fds" orderFiled:@"
" orderDirection:@"asc" page_number:1 page_size:10 success:succ failure:fail];
[[
ICRHTTPController
sharedController
]
querySurveyWithBillNUmberLinke
:
@"fdsfds"
state
:
@"initial"
titleLike
:
@"fds"
orderFiled
:
@"fdsafds
"
orderDirection
:
@"asc"
page_number
:
1
page_size
:
10
success
:
succ
failure
:
fail
];
[[
ICRHTTPController
sharedController
]
getResultsWithSurveyUuid
:
@"111"
success
:
succ
failure
:
fail
];
//
[[ICRHTTPController sharedController] getResultsWithSurveyUuid:@"111" success:succ failure:fail];
// for (NSInteger i = 0; i < 4; i++) {
// for (NSInteger i = 0; i < 4; i++) {
// Survey *survey = [[Survey alloc]init];
// Survey *survey = [[Survey alloc]init];
...
...
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