Commit c5d62355 authored by 王雪伟's avatar 王雪伟

[提交人]:王雪伟

[提交简述] :小象省钱
[实现方案] :加入非null判断
parent 9941608c
...@@ -110,11 +110,11 @@ public class MainActivity extends BaseActivity implements NavigationBottomView.N ...@@ -110,11 +110,11 @@ public class MainActivity extends BaseActivity implements NavigationBottomView.N
boolean firstLoginApp = SettingPreference.getFirstLoginApp(); boolean firstLoginApp = SettingPreference.getFirstLoginApp();
if (firstLoginApp) { if (firstLoginApp) {
SettingPreference.setFirstLoginApp();
UserInfo userInfoData = SettingPreference.getUserInfoData(); UserInfo userInfoData = SettingPreference.getUserInfoData();
if (userInfoData != null) { if (userInfoData != null&&userInfoData.member!=null) {
Constant.Switch.isOpenVip = userInfoData.member; Constant.Switch.isOpenVip = userInfoData.member;
if (!userInfoData.member) { if (!userInfoData.member) {
SettingPreference.setFirstLoginApp();
JumpUtils.OpenMember(); JumpUtils.OpenMember();
} }
} }
...@@ -204,7 +204,7 @@ public class MainActivity extends BaseActivity implements NavigationBottomView.N ...@@ -204,7 +204,7 @@ public class MainActivity extends BaseActivity implements NavigationBottomView.N
super.onResume(); super.onResume();
MobclickAgent.onResume(this); MobclickAgent.onResume(this);
UserInfo userInfoData = SettingPreference.getUserInfoData(); UserInfo userInfoData = SettingPreference.getUserInfoData();
if (userInfoData != null) { if (userInfoData != null&&userInfoData.member!=null) {
Constant.Switch.isOpenVip = userInfoData.member; Constant.Switch.isOpenVip = userInfoData.member;
} }
} }
......
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