|
@@ -76,13 +76,21 @@ public class LunchActivity extends Activity {
|
76
|
76
|
private void goMain() {
|
77
|
77
|
//测试用
|
78
|
78
|
initCateDbOpeator();
|
79
|
|
- if ((Boolean) SPUtil.get(this, Constant.IsFirstWEiChatLogin.ISWEICHATLOGIN, false) && !(Boolean) SPUtil.get(this, Constant.IsFirstWEiChatLogin.ISFIRSTWEICHATLOGIN, false)) {
|
|
79
|
+// if ((Boolean) SPUtil.get(this, Constant.IsFirstWEiChatLogin.ISWEICHATLOGIN, false) && !(Boolean) SPUtil.get(this, Constant.IsFirstWEiChatLogin.ISFIRSTWEICHATLOGIN, false)) {
|
|
80
|
+// LoginStatusUtil.loginOut();
|
|
81
|
+// //TODO 刷新数据(重写)
|
|
82
|
+// // EventBus.getDefault().post(new RefreshEvent());
|
|
83
|
+// EventBus.getDefault().post(new LoginOutEvent());
|
|
84
|
+// }
|
|
85
|
+
|
|
86
|
+ if((Boolean) SPUtil.get(this, Constant.IsFirstWEiChatLogin.ISWEICHATLOGIN,false)&&(Boolean) SPUtil.get(this,Constant.IsFirstWEiChatLogin.IsLoginOut,false)){
|
80
|
87
|
LoginStatusUtil.loginOut();
|
81
|
88
|
//TODO 刷新数据(重写)
|
82
|
89
|
// EventBus.getDefault().post(new RefreshEvent());
|
83
|
90
|
EventBus.getDefault().post(new LoginOutEvent());
|
84
|
91
|
}
|
85
|
92
|
|
|
93
|
+
|
86
|
94
|
UIHelper.openActivity(this, MainActivity.class);
|
87
|
95
|
|
88
|
96
|
finish();
|