Commit bbe9664c by 万齐军

Merge branch 'feat/qj/confide_optimize' into 'd/v_confide_optimized'

接通率优化

See merge request app_android_lib/YDL-Component!229
parents 67dbf484 0e5db903
...@@ -2,7 +2,7 @@ apply plugin: 'com.android.library' ...@@ -2,7 +2,7 @@ apply plugin: 'com.android.library'
apply plugin: 'kotlin-android' apply plugin: 'kotlin-android'
apply from: "../../maven_push_api.gradle" apply from: "../../maven_push_api.gradle"
version = '1.0.3' version = '1.0.4'
android { android {
compileSdkVersion rootProject.ext.android["compileSdkVersion"] compileSdkVersion rootProject.ext.android["compileSdkVersion"]
......
ext { ext {
dev_mode = false //组件发布的时候需要设置为false dev_mode = false //组件发布的时候需要设置为false
ydl2PublishVersion = "0.2.0.3-SNAPSHOT" ydl2PublishVersion = "0.2.0.4-SNAPSHOT"
ydlPublishVersion = [ ydlPublishVersion = [
// -------------- 业务模块 -------------- // -------------- 业务模块 --------------
//第三步 若干 //第三步 若干
...@@ -234,7 +234,7 @@ ext { ...@@ -234,7 +234,7 @@ ext {
"ydl-m-home-api" : "com.ydl:m-home-api:${ydlPublishVersion["m-home-api"]}", "ydl-m-home-api" : "com.ydl:m-home-api:${ydlPublishVersion["m-home-api"]}",
"ydl-m-consultant-api" : "com.ydl:m-consultant-api:1.0.0", "ydl-m-consultant-api" : "com.ydl:m-consultant-api:1.0.0",
"ydl-m-dynamic-api" : "com.ydl:m-dynamic-api:1.0.0", "ydl-m-dynamic-api" : "com.ydl:m-dynamic-api:1.0.0",
"ydl-m-confide-api" : "com.ydl:m-confide-api:1.0.3", "ydl-m-confide-api" : "com.ydl:m-confide-api:1.0.4",
"ydl-m-course-api" : "com.ydl:m-course-api:1.0.0", "ydl-m-course-api" : "com.ydl:m-course-api:1.0.0",
] ]
......
...@@ -20,7 +20,6 @@ import com.ydl.confide.home.bean.ConfideConnectResponse ...@@ -20,7 +20,6 @@ import com.ydl.confide.home.bean.ConfideConnectResponse
import com.ydl.webview.TellData import com.ydl.webview.TellData
import com.ydl.ydlcommon.base.BaseApp import com.ydl.ydlcommon.base.BaseApp
import com.ydl.ydlcommon.base.config.YDLConstants import com.ydl.ydlcommon.base.config.YDLConstants
import com.ydl.ydlcommon.ui.Loading
import com.ydl.ydlcommon.utils.YDLCacheUtils import com.ydl.ydlcommon.utils.YDLCacheUtils
/** /**
...@@ -55,7 +54,6 @@ class ConfdieServiceImpl : IConfideService { ...@@ -55,7 +54,6 @@ class ConfdieServiceImpl : IConfideService {
} }
override fun connectionJava(id: Int, type: Int, activity: Activity, tellData: String?, callType: String?) { override fun connectionJava(id: Int, type: Int, activity: Activity, tellData: String?, callType: String?) {
Loading.show(activity)
val myTellData: TellData? = if (tellData == null ) null else Gson().fromJson(tellData, TellData::class.java) val myTellData: TellData? = if (tellData == null ) null else Gson().fromJson(tellData, TellData::class.java)
ConfideWebServiceImpl().connectionJava(id, type, activity, myTellData, callType) ConfideWebServiceImpl().connectionJava(id, type, activity, myTellData, callType)
} }
......
...@@ -175,11 +175,13 @@ class ConfideWebServiceImpl { ...@@ -175,11 +175,13 @@ class ConfideWebServiceImpl {
activity: Activity, activity: Activity,
tellData: TellData? tellData: TellData?
) { ) {
Loading.show(activity)
ConfideHomeDataManager.getHttp() ConfideHomeDataManager.getHttp()
.submitOrderAndPay(ConnectParamJava("" + id, "" + type, callType ?: "")) .submitOrderAndPay(ConnectParamJava("" + id, "" + type, callType ?: ""))
.subscribeOn(Schedulers.io()) .subscribeOn(Schedulers.io())
.observeOn(AndroidSchedulers.mainThread()) .observeOn(AndroidSchedulers.mainThread())
.subscribe({ .subscribe({
Loading.close()
if ("200" == it.code) { if ("200" == it.code) {
when (it.data?.dialDetail?.dialStatus) { when (it.data?.dialDetail?.dialStatus) {
0 -> {//连接成功 0 -> {//连接成功
...@@ -205,6 +207,7 @@ class ConfideWebServiceImpl { ...@@ -205,6 +207,7 @@ class ConfideWebServiceImpl {
ToastHelper.show(it.msg) ToastHelper.show(it.msg)
} }
}, { }, {
Loading.close()
ToastHelper.show(it.message ?: "连接失败") ToastHelper.show(it.message ?: "连接失败")
}) })
} }
...@@ -309,6 +312,7 @@ class ConfideWebServiceImpl { ...@@ -309,6 +312,7 @@ class ConfideWebServiceImpl {
} }
}, { }, {
ToastHelper.show(it.message ?: "连接失败") ToastHelper.show(it.message ?: "连接失败")
Loading.close()
}) })
} }
......
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