diff --git a/common/src/main/java/com/yunbao/common/activity/WebViewActivity.java b/common/src/main/java/com/yunbao/common/activity/WebViewActivity.java index ee1dbfbfc..edff6179d 100644 --- a/common/src/main/java/com/yunbao/common/activity/WebViewActivity.java +++ b/common/src/main/java/com/yunbao/common/activity/WebViewActivity.java @@ -100,6 +100,10 @@ public class WebViewActivity extends AbsActivity { @Override public boolean shouldOverrideUrlLoading(WebView view, String url) { L.e("H5-------->" + url); + if(isKefu(url)){ + RouteUtil.forwardCustomerService(url); + return true; + } if (url.startsWith(Constants.COPY_PREFIX)) { String content = url.substring(Constants.COPY_PREFIX.length()); if (!TextUtils.isEmpty(content)) { diff --git a/common/src/main/java/com/yunbao/common/utils/JavascriptInterfaceUtils.java b/common/src/main/java/com/yunbao/common/utils/JavascriptInterfaceUtils.java index 8f013b898..33048d9ce 100644 --- a/common/src/main/java/com/yunbao/common/utils/JavascriptInterfaceUtils.java +++ b/common/src/main/java/com/yunbao/common/utils/JavascriptInterfaceUtils.java @@ -680,6 +680,7 @@ public class JavascriptInterfaceUtils { @JavascriptInterface public void androidGotoCustomerService(String url) { + ToastUtil.showDebug("网页跳客服页面"); RouteUtil.forwardCustomerService(url); } }