Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
android_street
Project
Project
Details
Activity
Releases
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
android
android_street
Commits
dcfd97cd
Commit
dcfd97cd
authored
Jul 16, 2021
by
mengcuiguang2
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
usermanager 优化,地图查询优化
parent
53cf784a
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
10 deletions
+7
-10
AndroidManifest.xml
app/src/main/AndroidManifest.xml
+1
-0
MyFragment.kt
app/src/main/java/com/mints/street/main/my/MyFragment.kt
+3
-8
UserManager.kt
app/src/main/java/com/mints/street/manager/UserManager.kt
+3
-2
No files found.
app/src/main/AndroidManifest.xml
View file @
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"
...
...
app/src/main/java/com/mints/street/main/my/MyFragment.kt
View file @
dcfd97cd
...
@@ -62,14 +62,9 @@ class MyFragment : BaseFragment<FragmentMyBinding, MyViewModel>(), OnRefreshList
...
@@ -62,14 +62,9 @@ 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()
// }
}
}
private
fun
initListener
()
{
private
fun
initListener
()
{
...
...
app/src/main/java/com/mints/street/manager/UserManager.kt
View file @
dcfd97cd
...
@@ -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
)
}
}
/**
/**
...
...
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