Commit 2e8f9c55 authored by 管鹏飞's avatar 管鹏飞

自动登陆

parent 5cd4c129
......@@ -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 =
......
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