Commit 2325843e by 霍志良

feat:搜索页导医分流

parent 54aa065c
......@@ -6,7 +6,7 @@ ext {
// -------------- 业务模块 --------------
//第三步 若干
"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-user" : "0.0.60.37",
"m-home" : "0.0.22.33",
......
......@@ -126,7 +126,7 @@ class HotSearchActivity : BaseMvpActivity<IHotSearchContract.View, IHotSearchCon
iv_daoyi_image.setOnClickListener {
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 {
}
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) {
......
......@@ -22,7 +22,7 @@ import io.reactivex.schedulers.Schedulers
class ConsultAssistantEntryUtils {
companion object {
@SuppressLint("CheckResult")
fun jumpConsultAssistant(activity: Activity, location: Int) {
fun jumpConsultAssistant(activity: Activity, location: Int,ffrom2:String?) {
ActionCountUtils.count(
ConsultBIConstants.POSITION_DAOYI_ADVERTISEMENT_CLICK,
"$location"
......@@ -32,7 +32,7 @@ class ConsultAssistantEntryUtils {
ConsultantIn.toLogin(activity)
} else {
// 请求接口获取咨询助理的uid
SearchApi.getSearchApi().getConsultAssistantUidRequest(location,null)
SearchApi.getSearchApi().getConsultAssistantUidRequest(location,ffrom2)
.subscribeOn(Schedulers.io())
.observeOn(AndroidSchedulers.mainThread())
.subscribe(Consumer {
......@@ -87,7 +87,7 @@ class ConsultAssistantEntryUtils {
}
2->{
jumpConsultAssistant(activity,location)
jumpConsultAssistant(activity,location,null)
}
else->{
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