Commit c70818f0 authored by mengcuiguang2's avatar mengcuiguang2

解决冲突

parents 51f4a26b dcfd97cd
...@@ -92,6 +92,7 @@ ...@@ -92,6 +92,7 @@
<activity android:name=".main.home.HistoricalimageActivity" /> <activity android:name=".main.home.HistoricalimageActivity" />
<activity android:name=".main.my.BindMobileActivity" /> <activity android:name=".main.my.BindMobileActivity" />
<activity android:name=".splash.GuideActivity"/> <activity android:name=".splash.GuideActivity"/>
<activity android:name=".main.home.SearchMapActivity"/>
<!-- ShareSDK start --> <!-- ShareSDK start -->
<activity <activity
android:name="com.mob.tools.MobUIShell" android:name="com.mob.tools.MobUIShell"
......
...@@ -62,13 +62,8 @@ class MyFragment : BaseFragment<FragmentMyBinding, MyViewModel>(), OnRefreshList ...@@ -62,13 +62,8 @@ class MyFragment : BaseFragment<FragmentMyBinding, MyViewModel>(), OnRefreshList
override fun onResume() { override fun onResume() {
super.onResume() super.onResume()
if (!TextUtils.isEmpty(userManager.getUserID())) { if (userManager.userIsLogin()) {
//查询用户登录信息 viewModel.getmyInfo()
viewModel.getmyInfo()
// refreshHighTask()
} else {
// 游客登录
// myPresenter.userLogin()
} }
} }
......
...@@ -112,8 +112,9 @@ class UserManager { ...@@ -112,8 +112,9 @@ class UserManager {
* @return true为已登录 false 为未登录 * @return true为已登录 false 为未登录
*/ */
fun userIsLogin(): Boolean { fun userIsLogin(): Boolean {
val kv = MMKV.mmkvWithID(WX_OPENID).decodeString(WX_OPENID, "") val wxId = MMKV.mmkvWithID(WX_OPENID).decodeString(WX_OPENID, "")
return !TextUtils.isEmpty(kv) val mobile = MMKV.mmkvWithID(MOBILE).decodeString(MOBILE, "")
return !TextUtils.isEmpty(wxId)||!TextUtils.isEmpty(mobile)
} }
/** /**
......
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