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
ae3ccba1
Commit
ae3ccba1
authored
9 years ago
by
陈俊俊
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
9c691fb9
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
28 additions
and
30 deletions
+28
-30
ICRHTTPController.m
XFFruit/Controllers/HTTPController/ICRHTTPController.m
+1
-1
ICRAppMacro.h
XFFruit/Macro/ICRAppMacro.h
+2
-2
ICRLoginViewController.m
XFFruit/ViewControllers/Login/ICRLoginViewController.m
+25
-27
No files found.
XFFruit/Controllers/HTTPController/ICRHTTPController.m
View file @
ae3ccba1
...
...
@@ -1301,7 +1301,7 @@ acceptTypeJson:YES
}
};
NSDictionary
*
dict
=
data
;
NSString
*
urlStr
=
[[[
self
class
]
UrlForPluginHTTPAction
:
XFFHttp_SurveySave
]
stringByAppendingFormat
:
@"?time=%@&operator.id=%@&operator.operName=%@&enterprise=%@"
,[[
NSDate
date
]
httpParameterString
],
@"admin"
,
@"
123456"
,
@"402851814e20d2d9014e20d2e8960030
"
];
NSString
*
urlStr
=
[[[
self
class
]
UrlForPluginHTTPAction
:
XFFHttp_SurveySave
]
stringByAppendingFormat
:
@"?time=%@&operator.id=%@&operator.operName=%@&enterprise=%@"
,[[
NSDate
date
]
httpParameterString
],
@"admin"
,
@"
thoradmin"
,
@"211534962
"
];
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/Macro/ICRAppMacro.h
View file @
ae3ccba1
...
...
@@ -26,9 +26,9 @@
//#define HTTP_REST_API_BASE_URL @"http://115.28.191.44:8080/IPatrol/rest"
//new HTTP
#define HTTP_REST_API_BASE_URL @"http://218.244.151.129:8281/XFFruit-server/rest"
#define HTTP_REST_API_BASE_URL @"http://218.244.151.129:7580/cruiser-server/rest"
//#define HTTP_REST_API_BASE_URL @"http://218.244.151.129:8281/XFFruit-server/rest"
// Import Headers
#import "ICRUtilsMacro.h"
...
...
This diff is collapsed.
Click to expand it.
XFFruit/ViewControllers/Login/ICRLoginViewController.m
View file @
ae3ccba1
...
...
@@ -116,33 +116,31 @@
// NSString *nsRegisterCode = self.m_containerView.m_cCodeTextF.text;
// NSString *nsUserName = self.m_containerView.m_userNameTextF.text;
// NSString *nsPassword = [self.m_containerView.m_passwordTextF.text uppercaseMD5String];
//
// void(^succ)(id) = ^(id data) {
// ICRUserUtil *userUtil = [ICRUserUtil sharedInstance];
// userUtil.bAutoLogin = @( [_m_containerView isAutoLogin] );
// [userUtil saveArchive];
//
// ICRAppViewControllerManager *mgr =
// [ICRAppViewControllerManager getAppViewControllerManager];
//
// [mgr openMainFrame];
// };
//
// void(^fail)(id) = ^(id data) {
// [IBTLoadingView showTips:data];
// };
// ICRHTTPController *httpCtrl = [ICRHTTPController sharedController];
// [httpCtrl doLoginWithUserName:nsUserName
// password:nsPassword
// registerCode:nsRegisterCode
// success:succ
// failure:fail];
NSString
*
nsRegisterCode
=
@"211534962"
;
NSString
*
nsUserName
=
@"admin"
;
NSString
*
nsPassword
=
@"thoradmin"
;
void
(
^
succ
)(
id
)
=
^
(
id
data
)
{
ICRUserUtil
*
userUtil
=
[
ICRUserUtil
sharedInstance
];
userUtil
.
bAutoLogin
=
@
(
[
_m_containerView
isAutoLogin
]
);
[
userUtil
saveArchive
];
ICRAppViewControllerManager
*
mgr
=
[
ICRAppViewControllerManager
getAppViewControllerManager
];
[
mgr
openMainFrame
];
};
void
(
^
fail
)(
id
)
=
^
(
id
data
)
{
[
IBTLoadingView
showTips
:
data
];
};
ICRHTTPController
*
httpCtrl
=
[
ICRHTTPController
sharedController
];
[
httpCtrl
doLoginWithUserName
:
nsUserName
password
:
nsPassword
registerCode
:
nsRegisterCode
success
:
succ
failure
:
fail
];
}
#pragma mark - TextObserver
...
...
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