调整webView

调整客服页面
This commit is contained in:
zlzw 2024-01-19 11:06:35 +08:00
parent feb08e1759
commit 299add0575
2 changed files with 5 additions and 0 deletions

View File

@ -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)) {

View File

@ -680,6 +680,7 @@ public class JavascriptInterfaceUtils {
@JavascriptInterface
public void androidGotoCustomerService(String url) {
ToastUtil.showDebug("网页跳客服页面");
RouteUtil.forwardCustomerService(url);
}
}