Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
YDL-Component-Medical
Overview
Overview
Details
Activity
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
杨凯
YDL-Component-Medical
Commits
df2ef859
Commit
df2ef859
authored
Jan 15, 2020
by
徐健
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
backup
parent
ecf4b437
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
5 deletions
+2
-5
config.gradle
config.gradle
+1
-1
UserServiceImp.kt
m-user/src/main/java/com/yidianling/user/modular_service/UserServiceImp.kt
+1
-2
SecretActivity.kt
m-user/src/main/java/com/yidianling/user/ui/login/SecretActivity.kt
+0
-2
No files found.
config.gradle
View file @
df2ef859
...
@@ -45,7 +45,7 @@ ext {
...
@@ -45,7 +45,7 @@ ext {
"m-confide"
:
"0.0.47"
,
"m-confide"
:
"0.0.47"
,
"m-consultant"
:
"0.0.56.1"
,
"m-consultant"
:
"0.0.56.1"
,
"m-fm"
:
"0.0.28"
,
"m-fm"
:
"0.0.28"
,
"m-user"
:
"0.0.5
5
"
,
"m-user"
:
"0.0.5
6
"
,
"m-home"
:
"0.0.18"
,
"m-home"
:
"0.0.18"
,
"m-im"
:
"0.0.11"
,
"m-im"
:
"0.0.11"
,
"m-dynamic"
:
"0.0.5.1"
,
"m-dynamic"
:
"0.0.5.1"
,
...
...
m-user/src/main/java/com/yidianling/user/modular_service/UserServiceImp.kt
View file @
df2ef859
...
@@ -123,8 +123,7 @@ public class UserServiceImp : IUserService {
...
@@ -123,8 +123,7 @@ public class UserServiceImp : IUserService {
val
lastVersionCode
:
Int
=
UserHelper
.
getUsetSetting
()
?.
lastVersionCode
?:
0
val
lastVersionCode
:
Int
=
UserHelper
.
getUsetSetting
()
?.
lastVersionCode
?:
0
val
currentVersionCode
:
Int
=
RxAppTool
.
getAppVersionCode
(
BaseApp
.
getApp
())
val
currentVersionCode
:
Int
=
RxAppTool
.
getAppVersionCode
(
BaseApp
.
getApp
())
if
(
lastVersionCode
<
currentVersionCode
)
{
if
(
lastVersionCode
<
currentVersionCode
)
{
// 这行代码放在隐私弹框同意按钮agreeAction中,必须确保注册前置页面是用户看到的第一个功能页面
UserHelper
.
getUsetSetting
()
?.
lastVersionCode
=
currentVersionCode
// UserHelper.getUsetSetting()?.lastVersionCode = currentVersionCode
return
true
return
true
}
}
return
false
return
false
...
...
m-user/src/main/java/com/yidianling/user/ui/login/SecretActivity.kt
View file @
df2ef859
...
@@ -106,8 +106,6 @@ class SecretActivity : BaseActivity() {
...
@@ -106,8 +106,6 @@ class SecretActivity : BaseActivity() {
}
}
private
fun
agreeAction
()
{
private
fun
agreeAction
()
{
//这行代码是从isFirstStart中取出的,为了确保注册前置功能
UserHelper
.
getUsetSetting
()
?.
lastVersionCode
=
RxAppTool
.
getAppVersionCode
(
BaseApp
.
getApp
())
SharedPreferencesEditor
.
putString
(
"hasAgreeSecret"
,
"true"
)
SharedPreferencesEditor
.
putString
(
"hasAgreeSecret"
,
"true"
)
setResult
(
SECRET_PAGE_REQUEST_OK_CODE
)
setResult
(
SECRET_PAGE_REQUEST_OK_CODE
)
finish
()
finish
()
...
...
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