Commit 7da8a914 by 刘鹏

feat:Service调用方式改成findRouteService

parent bbda772e
......@@ -12,6 +12,7 @@ import com.ydl.confide.home.event.ConfideDialogEvent
import com.ydl.webview.H5Params
import com.ydl.webview.NewH5Activity
import com.ydl.ydlcommon.base.BaseActivityMgr
import com.ydl.ydlcommon.modular.findRouteService
import com.ydl.ydlcommon.ui.Loading
import com.yidianling.common.tools.ToastUtil
import com.yidianling.user.UserHelper
......@@ -83,15 +84,13 @@ class JsMethod(private val webView: WebView?) {
//异常退出或者账号被顶掉,重新登录并拨打
YDLavManager.instances.login(UserHelper.getUserInfo()?.uid) { isSuccess: Boolean, _ ->
if (isSuccess) {
(ARouter.getInstance().build("/confide/ConfideService")
.navigation() as IConfideService).confideDial(id, data, topActivity)
findRouteService(IConfideService::class.java).confideDial(id, data, topActivity)
} else {
ToastUtil.toastShort("请重新拨打")
}
}
} else {
(ARouter.getInstance().build("/confide/ConfideService")
.navigation() as IConfideService).confideDial(id, data, topActivity)
findRouteService(IConfideService::class.java).confideDial(id, data, topActivity)
}
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