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
65147d82
Commit
65147d82
authored
Dec 05, 2019
by
徐健
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
导医backup
parent
273439ed
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
21 deletions
+18
-21
AudioHomeActivity.kt
m-audioim/src/main/java/com/ydl/audioim/AudioHomeActivity.kt
+0
-2
ConsultAssistantDialogUtils.kt
m-consultant/src/main/java/com/yidianling/consultant/modular/singlton/ConsultAssistantDialogUtils.kt
+18
-19
No files found.
m-audioim/src/main/java/com/ydl/audioim/AudioHomeActivity.kt
View file @
65147d82
...
...
@@ -162,8 +162,6 @@ class AudioHomeActivity : BaseMvpActivity<IAudioHomeActivityContract.View, IAudi
//频道管理器
private
var
channelManager
:
ChannelManager
?
=
null
private
var
isLeavelChannel
:
Boolean
=
false
private
var
isLeavelChannel
:
Boolean
=
false
...
...
m-consultant/src/main/java/com/yidianling/consultant/modular/singlton/ConsultAssistantDialogUtils.kt
View file @
65147d82
...
...
@@ -64,26 +64,25 @@ class ConsultAssistantDialogUtils private constructor() {
fromActivity
:
Boolean
=
false
)
{
//todo xj打release包的时候需要打开
if
(
origin
==
"home_index"
)
{
showFromYdlHome
(
activity
)
}
else
if
(
origin
==
"doctor_list"
)
{
show
(
activity
,
fromActivity
)
}
// if (origin == "home_index") {
// showFromYdlHome(activity)
// } else if (origin == "doctor_list") {
// show(activity, fromActivity)
// }
// 请求接口判断导医咨询助理按钮是否展示
//
SearchApi.getSearchApi().getConsultAssistantRequest(origin)
//
.subscribeOn(Schedulers.io())
//
.observeOn(AndroidSchedulers.mainThread())
//
.subscribe {
//
if (it.data) {
//
if (origin == "home_index") {
//
showFromYdlHome(activity)
//
} else if (origin == "doctor_list") {
//
show(activity, fromActivity)
//
}
//
}
//
}
SearchApi
.
getSearchApi
().
getConsultAssistantRequest
(
origin
)
.
subscribeOn
(
Schedulers
.
io
())
.
observeOn
(
AndroidSchedulers
.
mainThread
())
.
subscribe
{
if
(
it
.
data
)
{
if
(
origin
==
"home_index"
)
{
showFromYdlHome
(
activity
)
}
else
if
(
origin
==
"doctor_list"
)
{
show
(
activity
,
fromActivity
)
}
}
}
}
////////////////////////////////////// 首页的展示隐藏逻辑 代码块start ///////////////////////////////////////////////////
...
...
@@ -254,7 +253,7 @@ class ConsultAssistantDialogUtils private constructor() {
//如果没有缓存,则展示
return
true
//todo xj 把时间从20秒改为一天
}
else
if
(
System
.
currentTimeMillis
()
-
SharedPreferencesEditor
.
getString
(
ASSISTANT_DIALOG_SP_TAG
).
toLong
()
>
20
*
1000
)
{
}
else
if
(
System
.
currentTimeMillis
()
-
SharedPreferencesEditor
.
getString
(
ASSISTANT_DIALOG_SP_TAG
).
toLong
()
>
2
4
*
60
*
6
0
*
1000
)
{
//如果缓存时间超过一天,则展示
return
true
}
...
...
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