Commit 65147d82 by 徐健

导医backup

parent 273439ed
...@@ -162,8 +162,6 @@ class AudioHomeActivity : BaseMvpActivity<IAudioHomeActivityContract.View, IAudi ...@@ -162,8 +162,6 @@ class AudioHomeActivity : BaseMvpActivity<IAudioHomeActivityContract.View, IAudi
//频道管理器 //频道管理器
private var channelManager : ChannelManager? = null private var channelManager : ChannelManager? = null
private var isLeavelChannel:Boolean = false
private var isLeavelChannel:Boolean = false private var isLeavelChannel:Boolean = false
......
...@@ -64,26 +64,25 @@ class ConsultAssistantDialogUtils private constructor() { ...@@ -64,26 +64,25 @@ class ConsultAssistantDialogUtils private constructor() {
fromActivity: Boolean = false fromActivity: Boolean = false
) { ) {
//todo xj打release包的时候需要打开 // if (origin == "home_index") {
if (origin == "home_index") { // showFromYdlHome(activity)
showFromYdlHome(activity) // } else if (origin == "doctor_list") {
} else if (origin == "doctor_list") { // show(activity, fromActivity)
show(activity, fromActivity) // }
}
// 请求接口判断导医咨询助理按钮是否展示 // 请求接口判断导医咨询助理按钮是否展示
// SearchApi.getSearchApi().getConsultAssistantRequest(origin) SearchApi.getSearchApi().getConsultAssistantRequest(origin)
// .subscribeOn(Schedulers.io()) .subscribeOn(Schedulers.io())
// .observeOn(AndroidSchedulers.mainThread()) .observeOn(AndroidSchedulers.mainThread())
// .subscribe { .subscribe {
// if (it.data) { if (it.data) {
// if (origin == "home_index") { if (origin == "home_index") {
// showFromYdlHome(activity) showFromYdlHome(activity)
// } else if (origin == "doctor_list") { } else if (origin == "doctor_list") {
// show(activity, fromActivity) show(activity, fromActivity)
// } }
// } }
// } }
} }
////////////////////////////////////// 首页的展示隐藏逻辑 代码块start /////////////////////////////////////////////////// ////////////////////////////////////// 首页的展示隐藏逻辑 代码块start ///////////////////////////////////////////////////
...@@ -254,7 +253,7 @@ class ConsultAssistantDialogUtils private constructor() { ...@@ -254,7 +253,7 @@ class ConsultAssistantDialogUtils private constructor() {
//如果没有缓存,则展示 //如果没有缓存,则展示
return true return true
//todo xj 把时间从20秒改为一天 //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() > 24 * 60 * 60 * 1000) {
//如果缓存时间超过一天,则展示 //如果缓存时间超过一天,则展示
return true return true
} }
......
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