Commit 2325843e by 霍志良

feat:搜索页导医分流

parent 54aa065c
...@@ -6,7 +6,7 @@ ext { ...@@ -6,7 +6,7 @@ ext {
// -------------- 业务模块 -------------- // -------------- 业务模块 --------------
//第三步 若干 //第三步 若干
"m-confide" : "0.0.48.86", "m-confide" : "0.0.48.86",
"m-consultant" : "0.0.59.39", "m-consultant" : "0.0.59.40",
"m-fm" : "0.0.30.00", "m-fm" : "0.0.30.00",
"m-user" : "0.0.60.37", "m-user" : "0.0.60.37",
"m-home" : "0.0.22.33", "m-home" : "0.0.22.33",
......
...@@ -126,7 +126,7 @@ class HotSearchActivity : BaseMvpActivity<IHotSearchContract.View, IHotSearchCon ...@@ -126,7 +126,7 @@ class HotSearchActivity : BaseMvpActivity<IHotSearchContract.View, IHotSearchCon
iv_daoyi_image.setOnClickListener { iv_daoyi_image.setOnClickListener {
LogUtil.e("跳转导医:location=${data?.get(0)!!.location},title=${data[0].title}") LogUtil.e("跳转导医:location=${data?.get(0)!!.location},title=${data[0].title}")
ConsultAssistantEntryUtils.jumpConsultAssistant(this,data?.get(0)!!.location.toInt()) ConsultAssistantEntryUtils.jumpConsultAssistant(this,data?.get(0)!!.location.toInt(),"learning")
} }
} }
......
...@@ -115,7 +115,7 @@ class ConsultantServiceImp : IConsultantService { ...@@ -115,7 +115,7 @@ class ConsultantServiceImp : IConsultantService {
} }
override fun jumpConsultAssistant(activity: Activity, location: Int) { override fun jumpConsultAssistant(activity: Activity, location: Int) {
ConsultAssistantEntryUtils.jumpConsultAssistant(activity,location) ConsultAssistantEntryUtils.jumpConsultAssistant(activity,location,null)
} }
override fun dueToTypeJumpAutoOrGuide(activity: Activity, location: Int, doctorId: Int,url:String) { override fun dueToTypeJumpAutoOrGuide(activity: Activity, location: Int, doctorId: Int,url:String) {
......
...@@ -22,7 +22,7 @@ import io.reactivex.schedulers.Schedulers ...@@ -22,7 +22,7 @@ import io.reactivex.schedulers.Schedulers
class ConsultAssistantEntryUtils { class ConsultAssistantEntryUtils {
companion object { companion object {
@SuppressLint("CheckResult") @SuppressLint("CheckResult")
fun jumpConsultAssistant(activity: Activity, location: Int) { fun jumpConsultAssistant(activity: Activity, location: Int,ffrom2:String?) {
ActionCountUtils.count( ActionCountUtils.count(
ConsultBIConstants.POSITION_DAOYI_ADVERTISEMENT_CLICK, ConsultBIConstants.POSITION_DAOYI_ADVERTISEMENT_CLICK,
"$location" "$location"
...@@ -32,7 +32,7 @@ class ConsultAssistantEntryUtils { ...@@ -32,7 +32,7 @@ class ConsultAssistantEntryUtils {
ConsultantIn.toLogin(activity) ConsultantIn.toLogin(activity)
} else { } else {
// 请求接口获取咨询助理的uid // 请求接口获取咨询助理的uid
SearchApi.getSearchApi().getConsultAssistantUidRequest(location,null) SearchApi.getSearchApi().getConsultAssistantUidRequest(location,ffrom2)
.subscribeOn(Schedulers.io()) .subscribeOn(Schedulers.io())
.observeOn(AndroidSchedulers.mainThread()) .observeOn(AndroidSchedulers.mainThread())
.subscribe(Consumer { .subscribe(Consumer {
...@@ -87,7 +87,7 @@ class ConsultAssistantEntryUtils { ...@@ -87,7 +87,7 @@ class ConsultAssistantEntryUtils {
} }
2->{ 2->{
jumpConsultAssistant(activity,location) jumpConsultAssistant(activity,location,null)
} }
else->{ else->{
jumpToAutoTalk(activity, doctorUid) jumpToAutoTalk(activity, doctorUid)
......
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