Commit 73ebce75 by 霍志良

feat:亲子教育跳转专属导医队列接口对接

parent bd7001cc
......@@ -6,7 +6,7 @@ ext {
// -------------- 业务模块 --------------
//第三步 若干
"m-confide" : "0.0.48.86",
"m-consultant" : "0.0.59.36",
"m-consultant" : "0.0.59.37",
"m-fm" : "0.0.30.00",
"m-user" : "0.0.60.37",
"m-home" : "0.0.22.33",
......
......@@ -66,7 +66,7 @@ interface SearchApi {
//获取咨询助理uid
@Headers(YDL_DOMAIN + YDL_DOMAIN_JAVA, "Content-Type:application/json")
@GET("consult/assistant/chat-distribute")
fun getConsultAssistantUidRequest(@Query("location")location: Int): Observable<BaseAPIResponse<Long>>
fun getConsultAssistantUidRequest(@Query("location")location: Int,@Query("ffrom_2")ffrom:String?): Observable<BaseAPIResponse<Long>>
//获取咨询助理uid
@Headers(YDL_DOMAIN + YDL_DOMAIN_JAVA, "Content-Type:application/json")
......
......@@ -289,14 +289,20 @@ class ConsultAssistantDialogUtils private constructor() {
@SuppressLint("CheckResult")
fun getConsultAssistantUid(origin: String,activity: Activity,location:Int) {
if (origin=="doctor_list"){
LogUtil.e("是aaaaaaaaaaaaaaaaaaaaa")
// 请求接口获取咨询助理的uid
getConsultAssistantUid(location, activity,"learning")
}else{
LogUtil.e("不是aaaaaaaaaaaaaaaaaaaaa")
// 请求接口获取咨询助理的uid
getConsultAssistantUid(location, activity,null)
}
ActionCountUtils.count(ConsultBIConstants.POSITION_DAOYI_ADVERTISEMENT_CLICK, location.toString())
// 请求接口获取咨询助理的uid
SearchApi.getSearchApi().getConsultAssistantUidRequest(location)
}
@SuppressLint("CheckResult")
private fun getConsultAssistantUid(location: Int, activity: Activity, ffrom:String?) {
SearchApi.getSearchApi().getConsultAssistantUidRequest(location, ffrom)
.subscribeOn(Schedulers.io())
.observeOn(AndroidSchedulers.mainThread())
.subscribe(Consumer {
......
......@@ -32,7 +32,7 @@ class ConsultAssistantEntryUtils {
ConsultantIn.toLogin(activity)
} else {
// 请求接口获取咨询助理的uid
SearchApi.getSearchApi().getConsultAssistantUidRequest(location)
SearchApi.getSearchApi().getConsultAssistantUidRequest(location,null)
.subscribeOn(Schedulers.io())
.observeOn(AndroidSchedulers.mainThread())
.subscribe(Consumer {
......
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