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
2e8f9c55
Commit
2e8f9c55
authored
Nov 09, 2015
by
管鹏飞
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
自动登陆
parent
5cd4c129
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
7 deletions
+13
-7
ICRLoginViewController.m
XFFruit/ViewControllers/Login/ICRLoginViewController.m
+13
-7
No files found.
XFFruit/ViewControllers/Login/ICRLoginViewController.m
View file @
2e8f9c55
...
...
@@ -95,15 +95,15 @@
[
self
.
view
addSubview
:
_m_containerView
];
#if DEBUG
//
#if DEBUG
// self.m_containerView.m_cCodeTextF.text = @"A93jie957lK";
// self.m_containerView.m_userNameTextF.text = @"kevin";
// self.m_containerView.m_passwordTextF.text = @"aaa";
//@"http://218.244.151.129:7580/cruiser-server/rest"
self
.
m_containerView
.
m_cCodeTextF
.
text
=
@"211534962"
;
self
.
m_containerView
.
m_userNameTextF
.
text
=
@"admin"
;
self
.
m_containerView
.
m_passwordTextF
.
text
=
@"thoradmin"
;
//
self.m_containerView.m_cCodeTextF.text = @"211534962";
//
self.m_containerView.m_userNameTextF.text = @"admin";
//
self.m_containerView.m_passwordTextF.text = @"thoradmin";
//@"http://122.224.171.126:7280/cruiser-server/rest"
...
...
@@ -117,10 +117,15 @@
// self.m_containerView.m_userNameTextF.text = @"admin";
// self.m_containerView.m_passwordTextF.text = @"thoradmin";
[
self
.
m_containerView
checkLoginEnable
];
#else
ICRUserUtil
*
userU
=
[
ICRUserUtil
sharedInstance
];
#endif
self
.
m_containerView
.
m_cCodeTextF
.
text
=
userU
.
registerCode
;
//*registerCode; //企业认证码
self
.
m_containerView
.
m_userNameTextF
.
text
=
userU
.
userName
;
self
.
m_containerView
.
m_passwordTextF
.
text
=
userU
.
password
;
[
self
.
m_containerView
checkLoginEnable
];
//#else
//
//#endif
}
#pragma mark - Logic
...
...
@@ -146,6 +151,7 @@
void
(
^
succ
)(
id
)
=
^
(
id
data
)
{
ICRUserUtil
*
userUtil
=
[
ICRUserUtil
sharedInstance
];
userUtil
.
bAutoLogin
=
@
(
[
_m_containerView
isAutoLogin
]
);
[
userUtil
saveArchive
];
ICRAppViewControllerManager
*
mgr
=
...
...
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