Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
YDL-Component-Medical
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
杨凯
YDL-Component-Medical
Commits
7da8a914
Commit
7da8a914
authored
Jun 28, 2022
by
刘鹏
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:Service调用方式改成findRouteService
parent
bbda772e
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
JsMethod.kt
app/src/main/java/com/ydl/component/service/web/JsMethod.kt
+3
-4
No files found.
app/src/main/java/com/ydl/component/service/web/JsMethod.kt
View file @
7da8a914
...
...
@@ -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
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment